Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Which of the following statements about interfaces is true? You cannot define a variable whose type is an interface. You can define an interface variable
Which of the following statements about interfaces is true?
You cannot define a variable whose type is an interface.
You can define an interface variable that refers to an object of any class in the same package.
You can define an interface variable that refers to an object only if the object belongs to a class that implements the interface.
You can instantiate an object from an interface class.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started