Computer Science, asked by SakshamJain11, 1 year ago

Explain objects and classes in JAVA with an example

Answers

Answered by sanlitsiv
0
classes are collection of objects .and object share common characteristics and behaviour.

sanlitsiv: is this correct
SakshamJain11: Explain with example Please dont answer half question
sanlitsiv: sry
Answered by kdskdklsefl
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