Computer Science, asked by PragyaTbia, 1 year ago

Differentiate object and class?

Answers

Answered by mk7070725305
1

An object is a member or an "instance" of a class. An object has a state in which all of its properties have values that you either explicitly define or that are defined by default settings. This subtle conceptual difference between classes and objects shows why there is a tendency to want to use them interchangeably.

Answered by theking20
0

Differentiation of object and class are followed by:

--  Object and Class are two essential part of Object-oriented programming. A class is generally considered as a construct consisting of a group, that has multiple variables and processes. Objects works merely as a. instance of the said class. More notable differences would be, like:

a. A class keeps data and methods in it together, whereas an Object performs only as a variable.

b. Classes are logical, whereas Objects tend to have a physical appearance

c. A Class can be declared only once, but based on that class, an Object can be called multiple times.

Similar questions