5 Computer -- OOP Concept

Define the term object and class.

Define the term object and class.

Objects:

An object is any entity, thing or organization that exits in real world. t consists of two fundamentals characteristics: its attributes and behaviors. For example: a dog is an object having attributes such as color, weight, age, etc. and behaviors such as barking, wagging tail, etc. 

Class:

A class is the collection of similar objects. It is defined as the template or prototype to define the common attributes and behavior for all the objects of the class.

More questions on OOP Concept

Close Open App