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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question

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
 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Software Development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage