Defining Proper Classes with Java
- by user2579706
Ok, I'm studying Java and have the following question:
"Assume you defined a class named MyClass. A student wants to use your class and tries to declare an instance named myObj and instantiate it. He tried the following:
MyObj MyClass = new MyClass( );
Why won't his code work? Show how he should correct it. "
I'm not sure how to do this? Can anyone point me in the right direction? Many thanks.