An object is created based on its class . You can consider a class as a blueprint, template, or a description how to create an object. When an object is created, memory is allocated to hold the object properties. An object reference pointing to that memory location is also created.
Read moreWhy are objects created?
An object is created based on its class . You can consider a class as a blueprint, template, or a description how to create an object. When an object is created, memory is allocated to hold the object properties. An object reference pointing to that memory location is also created.
Read moreWhy do we create objects in OOPs?
You want to be able to describe the person and have the person do something. A class called ‘person’ would provide a blueprint for what a person looks like and what a person can do. To actually use a person in your program , you need to create an object. You use the person class to create an object of the type ‘person.
Read moreWhy do we create objects in OOPs?
You want to be able to describe the person and have the person do something. A class called ‘person’ would provide a blueprint for what a person looks like and what a person can do. To actually use a person in your program , you need to create an object. You use the person class to create an object of the type ‘person.
Read more