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 is an object declaration?

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  Where is Java used examples?

Leave a Reply

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