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

5th Jun 2019, 1:56 AM
jonathan simon
2 odpowiedzi
0
look for right syntax: .how to declare class .how to create object from class .how to call method of (created) object
5th Jun 2019, 9:51 AM
zemiak
0
ok, thanks
7th Jun 2019, 9:01 AM
jonathan simon