Why 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.

Sizin İçin Seçtik  Elektrikli araçlar kaç km gider?

Leave a Reply

Your email address will not be published. Required fields are marked *

Why 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.

Sizin İçin Seçtik  What does a manager do in Deloitte?

Leave a Reply

Your email address will not be published. Required fields are marked *