define object with example in java
Answers
Answered by
1
Explanation:
Java is an object-oriented programming language. ... For example: in real life, a car is an object. The car has attributes, such as weight and color, and methods, such as drive and brake. A Class is like an object constructor, or a "blueprint" for creating objects
Answered by
0
An identifiable entity with some characteristics, a state and behavior is known as a object.
Example : a pen, a mouse etc
Similar questions