Explain objects and classes in JAVA with an example
Answers
Answered by
0
classes are collection of objects .and object share common characteristics and behaviour.
sanlitsiv:
is this correct
Answered by
2
The object and classes are the main constituent elements of Java a class is formed by many groups of objects where as the object is a instance of class
The classes all helpful in making the objects classes provide the benefit of reusability for example bicycle manufacturers use and reuse the same blueprint over and over again to build a lot of bicycles Hence a class is visible to make lots of objects
Similar questions