Defining Proper Classes with Java

Posted by user2579706 on Stack Overflow See other posts from Stack Overflow or by user2579706
Published on 2013-10-25T03:46:19Z Indexed on 2013/10/25 3:54 UTC
Read the original article Hit count: 74

Filed under:

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.

© Stack Overflow or respective owner

Related posts about java