Podcast
Questions and Answers
What is the term used to describe a very general type of object with known characteristics?
What is the term used to describe a very general type of object with known characteristics?
- Inheritance
- Generalization (correct)
- Specialization
- Polymorphism
Which type of students are specialized versions of a general student?
Which type of students are specialized versions of a general student?
- Graduate students
- Post-Graduated students
- Under-Graduated students
- All of the above (correct)
What is the relationship between a superclass and an inherited class called?
What is the relationship between a superclass and an inherited class called?
- Polymorphism
- Inheritance (correct)
- Generalization
- Specialization
Inheritance in object-oriented programming is used to create an 'is a' relationship among classes. What does this mean?
Inheritance in object-oriented programming is used to create an 'is a' relationship among classes. What does this mean?
What does inheritance involve in object-oriented programming?
What does inheritance involve in object-oriented programming?
What does a specialized object have in addition to the characteristics of the general object?
What does a specialized object have in addition to the characteristics of the general object?
In Java, what keyword is used to define a subclass?
In Java, what keyword is used to define a subclass?
What happens to private members of a superclass in Java?
What happens to private members of a superclass in Java?
When a subclass is instantiated, which constructor is executed first in Java?
When a subclass is instantiated, which constructor is executed first in Java?
What must a superclass provide if a parameterized constructor is defined in Java?
What must a superclass provide if a parameterized constructor is defined in Java?
What is the term for having a method with the same signature as a superclass method in Java?
What is the term for having a method with the same signature as a superclass method in Java?
Which keyword refers to an object's superclass in Java?
Which keyword refers to an object's superclass in Java?
What happens to non-private methods of a superclass when an instance of the subclass is created in Java?
What happens to non-private methods of a superclass when an instance of the subclass is created in Java?
What annotation should be used before a subclass method declaration to indicate method overriding in Java?
What annotation should be used before a subclass method declaration to indicate method overriding in Java?
In Java, when calling a superclass constructor, where should the call be placed within a subclass constructor?
In Java, when calling a superclass constructor, where should the call be placed within a subclass constructor?
What keyword is used on the class header to define the subclass of a class named 'Employee' in Java?
What keyword is used on the class header to define the subclass of a class named 'Employee' in Java?