What is an "object" in programming?

Status
Not open for further replies.
an object is an instance of a class, component, or a number of other things. an OOP program uses these objects together to get a job done.
 
an object consist of data and method.
it can be defined as the instance of a class.
class is a blueprint and object is created based on the class.

not only it make the progrma more organized and better, the class you wrote can use for others project.

you create an object in your code according to the blueprint or the class and it wll save a lot of work for you.
 
Status
Not open for further replies.
Back
Top Bottom