0
java creating classes and object, please help me with this exercise
public A { public void test() { System.out.println("Hi"); } } class B { public static void main(String args[ ]) { obj = A(); obj. ; } } A class object new B test() create Unlock
2 Antworten
0
look for right syntax:
.how to declare class
.how to create object from class
.how to call method of (created) object
0
ok, thanks