click below
click below
Normal Size Small Size show me how
Capstone Project
Inheritence and Polymorphism
Question | Answer |
---|---|
What is a relationship between objects that share characteristics called? | Inheritance |
What is a class that is created from another class called? | Subclass |
What is an already existing class from which a new class is made from called? | Superclass |
Which is bigger: Subclass or Superclass | Subclass |
Changing a method from a Superclass is called? | Method Overriding |
If only part of the method is rewritten, it is called? | Partial Overriding |
Subclasses are declared by what keyword? | extends |
True or False: a Subclass inherits the private instance variables and private methods of the Superclass. | False |
What keyword calls a method from the Supercalss? | super |
True or False: Private methods can be overwritten. | False |
True or False: Constructors are inherited from a Superclass. | False |
True or False: An object can be created for the current class and any Subclasses, but not from the Superclass | True |
What is a method that has been overridden in at least one subclass called? | Polymorphic |
The mechanism of selecting the correct method for an object in a class hierarchy is called? | Polymorphism |
True of False: The selection of the correct method occurs during the running of the program. | True |
A run-time decision about what instance method to call is called? | Dynamic Binding |
Selecting the method during compiling is called? | Static Binding |
Casting a Superclass to a Subclass type is called? | Downcasting |
True or False: Abstract Classes should be instantiated. | False |
True or False: Abstract Methods should always be overridden. | True |
True or False: Abstract Methods are placeholder methods. | True |
An abstract class is declared with which keyword? | abstract |
What is a collection of related methods called? | Interface |
Which keyword declares an interface? | interface |
Which keyword implements Interfaces? | implements |
True or False: Comparable interfaces compare objects. | True |