Fill in the blank space 1. The ____________ keyword is used to create a new instance or object of a class 2. ______________ is the concept of closely controlling access to an object's attributes and is also called information hiding 3. A ____________ is a method that is used 5o set the initial state of an object when it is created. 4. (i) Method _________ is the process of changing the number and type of parameters of a method (ii) Method __________ is the process of replacing a method in a superclass with a new implementation in the subclass 5. A ______________ expression is an expression that evaluates to either true or false. 6. In Java polymorphism means that a class or object can be treated as multiple different types. Which of the following statements regarding polymorphism in Java are true? Select all that apply. A. A subclass can be treated as any of it's ancestor (super) classes. B. A Java class can be treated as any interface it implements C. A Java class can be treated as any type that extends/inherits from it (subclasses) D. All Java classes can be treated as the Object type. 7. Which of the following items can the 'final' keyword be applied to? Select all that apply. A. expressions B. variables C. classes D. methods
Fill in the blank space
1. The ____________ keyword is used to create a new instance or object of a class
2. ______________ is the concept of closely controlling access to an object's attributes and is also called information hiding
3. A ____________ is a method that is used 5o set the initial state of an object when it is created.
4. (i) Method _________ is the process of changing the number and type of parameters of a method
(ii) Method __________ is the process of replacing a method in a superclass with a new implementation in the subclass
5. A ______________ expression is an expression that evaluates to either true or false.
6. In Java polymorphism means that a class or object can be treated as multiple different types.
Which of the following statements regarding polymorphism in Java are true? Select all that apply.
A. A subclass can be treated as any of it's ancestor (super) classes.
B. A Java class can be treated as any interface it implements
C. A Java class can be treated as any type that extends/inherits from it (subclasses)
D. All Java classes can be treated as the Object type.
7. Which of the following items can the 'final' keyword be applied to? Select all that apply.
A. expressions
|
|
B. variables
|
|
C. classes
|
|
D. methods
|
Trending now
This is a popular solution!
Step by step
Solved in 2 steps