What is object and class?

Recommended Answers

A class is a collection of member functions and identifiers such as integer, float or character etc.

and

An object is a run time entity of the class.

Jump to Post

All 3 Replies

first I want to tell if you google you can get more details about this topic.
If I tell this simply, Class is somthing like a template. Object is a instance of a class.
If I explain this in day to day life, Imagine you have a biscutes factory. where you have sevral templates of biscuts and you use them to make busicutes, then busicutes templates are like classes and the busicutes you make from each templates are like objects that created from busicutes templates or busicute classes. so in oop it is good pratice to sea day to day life things with objects and classes concept. then you can make use of it very well and quickly..

A class is a collection of member functions and identifiers such as integer, float or character etc.

and

An object is a run time entity of the class.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.