CBSE BOARD XII, asked by SimranGarg, 1 year ago

what are classes in java

Answers

Answered by kavya55
1
A class is a group of object which have common properties. It is a template or blueprints from which object are created. It is a logical entity
A class in Java contain
#Fields
#methods
#constructors
#blocks
#nested class and interface.
Answered by Anshu33845
0

Answer:

In Java, class is a blue print of the object in which we look many properties. Through class, we see how object look like. It is a texture representation of objects. Class contain these five are:

  1. Fields
  2. Methods
  3. Constructors
  4. Blocks
  5. Nested classes & interface

Similar questions