Which statement best describes the relationship between base class and derived class types
A) A derived class reference cannot be assigned to a base class variable and a base class
Reference cannot be assigned to a derived class variable.
B) A derived class reference can be assigned to a base class variable and a base class
Reference can be assigned to a derived class variable.
C) A base class reference can be assigned to a derived class variable,but a derived class
Reference cannot be assigned to a base class variable.
D) A derived class reference can be assigned to a base class variable,but a base class
Reference cannot be assigned to a derived class variable.
Correct Answer:
Verified
Q2: Polymorphism enables you to:
A) program in the
Q3: Polymorphism allows for specifics to be dealt
Q4: Concrete classes provide implementations for every method
Q5: Abstract classes may not be:
A) inherited
B) accessed
Q6: Polymorphism allows classes to be added with
Q7: Polymorphism helps promote software extensibility.
Q9: Which of the following is false about
Q10: When a request is made to use
Q12: The abstract methods and properties of a
Q13: If a derived class reference is assigned
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents