Assuming that class B inherits from class A, which of the following is correct?
A) An object of class B is an object of class A.
B) An object of class A is an object of class B.
C) An object of class B is an object of class A and an object of class A is an object of class B.
D) None of these is correct.
Correct Answer:
Verified
Q38: An interface can contain a constructor.
Q39: _ allows us to use the same
Q40: Which keyword do we use in the
Q41: When class B inherits from class A:
A)
Q42: Assuming that class B inherits from class
Q44: What keyword do we use in the
Q45: When a class implements an interface:
A) it
Q46: Private fields and methods are inherited.
Q47: Private fields and methods are part of
Q48: Public fields and methods are inherited.
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