0

what is use of an object creating in class?

27th Sep 2016, 5:16 AM
vijendiran
3 odpowiedzi
+ 1
so that you can use a method defined in a different class
28th Sep 2016, 7:41 AM
Vivek Anand
0
a class is a blueprint for an object. when we create an object, we actually create an instance of that class.
27th Sep 2016, 3:46 PM
Mythos
0
The use of creating reference objects for a class are to make the other classes methods accessible to use. such as let's say you have two classes your main class which contains main() and then you have print class. you can create an object for that class and then call the object to reference the method and use the method you made in a different class such as print p = new print () p.String ();
27th Sep 2016, 5:02 PM
Joshua Parsons
Joshua Parsons - avatar