Question: 4. Consider the following program: public class classA public void dothat (ClassB cl, Classc c2) t//method content goes here) } public class classe extends classA

 4. Consider the following program: public class classA public void dothat

4. Consider the following program: public class classA public void dothat (ClassB cl, Classc c2) t//method content goes here) } public class classe extends classA public class classc extends class public class Main public static void main(String[]args) { ClassA cl = new classA(); Class c2 = new Class(); classc c3 = new Classc(); ) Which of the following is a correct call to dothat? Why? a. c1.dothat(c1,1); b. c2.dothat(c2,c2); c3.dothat(c1,1); d. c2.dothat(c3,c2); c3.dothat(c3,c3); C. e

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!