Question: a) b) Consider the following program? public class MyClass{ public MyClass(){ // code } // more code To instantiate MyClass, which one of the
a) b) Consider the following program? public class MyClass{ public MyClass(){ // code } // more code To instantiate MyClass, which one of the following will you write? MyClass mc=new MyClass; MyClass mc-new MyClass(); MyClass mc-MyClass; MyClass mc-MyClass(); Bo brak
Step by Step Solution
3.52 Rating (162 Votes )
There are 3 Steps involved in it
The question is asking for the correct syntax to instantiate an object of a class in Java Instantiat... View full answer
Get step-by-step solutions from verified subject matter experts
