Question: State whether each of the statements that follows is true or false. If false, explain why. a) Its possible to treat base-class objects and derived-class

State whether each of the statements that follows is true or false. If false, explain why.

a) It’s possible to treat base-class objects and derived-class objects similarly.

b) All methods in an abstract class must be declared as abstract methods.

c) Attempting to invoke a derived-class-only method through a base-class variable is an error.

d) If a base class declares an abstract method, a derived class must implement that method.

e) An object of a class that implements an interface may be thought of as an object of that interface type.

Step by Step Solution

3.33 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a True b False An abstract class c... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Visual C How Program Questions!