![]() |
The basic purpose of a Class is to identify the common attributes and behaviours and group them as an entity that can be reused again and again for similar purposes. The Objects are such entities that are created based on these classes to follow that purpose. All data members and member functions of the class can be accessed with the help of objects. When a class is defined, no memory is allocated, but memory is allocated when it is instantiated (i.e. an object is created). Example of ObjectFor Example, the objects for the class Account are SBI Account, ICICI account, etc. Characteristics of an objectAs discussed above, every object has some attributes and behaviours, but it is very important to understand what are the characteristics, that every object must have:
|
Reffered: https://www.geeksforgeeks.org
Programming |
Related |
---|
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |