Question: Consider the following interface: public interface Playable { public void play ( ) ; } Select all true statements from among the following: You can
Consider the following interface:
public interface Playable
public void play;
Select all true statements from among the following:
You can create a reference variable of type Playable
You can create an object of type Playable
If you create a reference variable of type Playable, you can call the method play using that reference
If you create a reference variable of type Playable pointing to an object of class Horn, you can call any method of class Horn using that reference without explicit typecasting
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
