Computer Science, asked by MrTSR, 3 months ago

Difference between Class and Object in JAVA

Answers

Answered by BrainlyProgrammer
20

Class

  • Class is a blueprint or prototype of an object that describes the data members and the functions.
  • It is also known as 'Object Factory'.

Object

  • It is a unique entity having some characteristics and behaviour described within the class
  • It is also know as the 'Instânce of a Class'.
Answered by Oreki
8

                 \textsl{\textbf{Difference between an Object and a Class in Java}}

      \begin{tabular}{l | r}{\bf Object} & {\bf Class}\\\textsf{An inst\symbol{97}nce of a class.} & \textsf{A blueprint (or template) from} \\& \textsf{which objects are created.}\\\textsf{A real world entity.} & \textsf{A group of similar objects.}\\\textsf{A physical identity.} & \textsf{A logical entity.}\\\textsf{Created using the \textbf{new} keyword.} & \textsf{Declared using the \textbf{class} keyword.}\\\textsf{Created as many times as per needed.} & \textsf{Only declared once.}\end{tabular}

Similar questions