what are classes in java
Answers
Answered by
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.
A class in Java contain
#Fields
#methods
#constructors
#blocks
#nested class and interface.
Answered by
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:
- Fields
- Methods
- Constructors
- Blocks
- Nested classes & interface
Similar questions