What are class and object in JAVA?
Answers
Answered by
21
CLASS AND OBJECT IN JAVA :::
- Object − Objects have states and behaviors
Example: A dog has states - color, name, breed as well as behaviors – wagging the tail, barking, eating.
- Class − A class can be defined as a template/blueprint that describes the behavior/state that the object of its type support.
PLEASE CHECK IT
MARK IT BRAINLIST
FOLLOW ME
THANK YOU
Answered by
3
Answer:
CLASS: CLASS IS A TEMPLATES/ BLUE PRINT THAT THE OBJECT OF ITS STAGE OF TYPE SUPPORT.
OBJECT: IT HAVE STATES AND BEHAVIOR..
Explanation:
HAVE A NICE DAY.......... THANKS DEAR....... IF ANY PROBLEM THEN ASK...... I ALWAYS BE READY FOR HELP..
Similar questions