Kunal Gupta
Kunal's { Blog }


Kunal's { Blog }


Object? In java

Kunal Gupta's photo
Kunal Gupta
·Aug 24, 2022·

1 min read


Represent real life entity.

in java you can create many class.

Points to remember about objects.

  • state = the variables which we define .
  • Behavior = its represent by method.
  • identity = gives a name to object to interact with other object.

Initializing Object.

with the help of new keyword.

Dog tuffy = **new** Dog("tuffy","papillon", 5, "white");

Share this