Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Programming questions