subject

Consider the following interface & class definitions.

public interface ClassA

{

public void methodA();

}

public class ClassB implements ClassA

{

public void methodA() { /* ... some code ... */ }

}

public class ClassC extends ClassB

{

public void methodC( ClassC obj ) { /* ... some code ... */ }

}

Consider the following statements in a client class.

ClassC objC = new ClassC();

ClassB objB = new ClassB();

Which of the following method calls would be permissible?

objB. methodC(objC);

objC. methodC(objB);

objC. methodA();

Answers:

A.

I only

B.

II only

C.

III only

D.

II and III only

E.

I, II, and III

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
What percentage of companies is projected to use social media to locate new employees in 2012
Answers: 2
question
Computers and Technology, 23.06.2019 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 24.06.2019 20:30
Where is permanent data in the computer stored whenever gym starts his laptop he sees some commands in numbers appearing on the screen these instructions are being preceded by the control unit in
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
Drums installed, you would apply clicks of the parking brake to obtain a slight drag on both rear wheels
Answers: 1
You know the right answer?
Consider the following interface & class definitions.

public interface ClassA
...
Questions
question
Biology, 27.03.2021 02:30
question
Mathematics, 27.03.2021 02:30
question
Mathematics, 27.03.2021 02:30