What is an Object in OOPS?

Object is the base of object oriented programming concept. Object is an instance of class in programming. In real world, a person is an example of object.


Ex: I’m an object of Human class,

My properties are
Name : Name1
Height : 175 CM
Weight : 75KG
My functions are
Walk(), Run(), Eat(), Talk(), Sleep(), WakeUp() etc.

The same concept is used in programming.

Programmatic representation

Human human1 = new Human();Object
human1.Name = "Name1";
human1.Height = 175;
human1.Weight = 75;

2 thoughts on “What is an Object in OOPS?

Leave a Reply