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, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Iam trying to get my google account back for school and business, can someone ?
Answers: 1
You know the right answer?
Consider the following interface & class definitions.

public interface ClassA
...
Questions
question
Mathematics, 16.04.2020 22:00
question
Mathematics, 16.04.2020 22:00
question
Mathematics, 16.04.2020 22:01
question
History, 16.04.2020 22:01
question
Mathematics, 16.04.2020 22:01
Questions on the website: 13722360