Explain the anatomy of an object in java
Answers
Answered by
2
The Basic Anatomy of a Java Program
class definition - Your java programs will always start with a class definition. Begin with the word "class" followed by the name of the program. Use curly braces to start and end the class definition. In the example shown here the name of the program would be HelloWorld.
class HelloWorld {
. . . .
i hope it helps you
Answered by
1
Answer:
An object is an identifiable entity that has its own set of attributes, behaviour and state.
Attributes are individual characteristics that differentiate one object from another.
Behaviour is defined by the set of functions or operations an object can perform.
State is defined by the set of values held by its attributes.
Hope It Helps,
Do Mark Me The Brainliest !
Similar questions