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 17:30
Per the municipal solid waste report, what are the most common sources of waste (trash
Answers: 3
question
Computers and Technology, 23.06.2019 18:20
What is wi-fi infrastructure? a metropolitan area network that uses radio signals to transmit and receive data a communications technology aimed at providing high-speed wireless data over metropolitan area networks a means by which portable devices can connect wirelessly to a local area network, using access points that send and receive data via radio waves includes the inner workings of a wi-fi service or utility, including the signal transmitters, towers, or poles and additional equipment required to send out a wi-fi signal
Answers: 2
question
Computers and Technology, 23.06.2019 18:40
Johnson enterprises uses a computer to handle its sales invoices. lately, business has been so good that it takes an extra 3 hours per night, plus every third saturday, to keep up with the volume of sales invoices. management is considering updating its computer with a faster model that would eliminate all of the overtime processing.
Answers: 2
question
Computers and Technology, 24.06.2019 08:00
Arah has entered data about football players from team a and team b in a worksheet. she enters names of players from team a with details about each player in different columns of the worksheet. similarly, she enters details of all the players from team b. which option will her view the data for team a and team b in two separate sections after printing? a. page break view b. freeze pane view c. split screen view d. full screen view e. zoom out view
Answers: 1
You know the right answer?
Consider the following interface & class definitions.

public interface ClassA
...
Questions
question
English, 09.03.2021 21:20
question
Mathematics, 09.03.2021 21:20
question
Mathematics, 09.03.2021 21:20
Questions on the website: 13722367