Question: Why is it that if you have an abstract class like Shape you are allowed to define a reference variable of type Shape but

Why is it that if you have an abstract class like Shape

Why is it that if you have an abstract class like Shape you are allowed to define a reference variable of type Shape but not allowed to new an actual Object of type Shape? A: Because the definition of the type itself is incomplete, like a blueprint for a house being incomplete and thus you can't build one. B: All refences variable are of the same size so no specific information about how much memory is needed to define a reference is needed for any type. C: Both A & B are true OB

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!