0
what is use of an object creating in class?
3 Answers
+ 1
so that you can use a method defined in a different class
0
a class is a blueprint for an object. when we create an object, we actually create an instance of that class.
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 ();