Why do we create instance of a class?

Creating a new class creates a new type of object, allowing new instances of that type to be made . Each class instance can have attributes attached to it for maintaining its state. Class instances can also have methods (defined by its class) for modifying its state.

Sizin İçin Seçtik  What are the ways to create a object?

Leave a Reply

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