Why object is known as instance of a class.
An object is an identifiable entity with some characters tics and behavior. A class is a blueprint representing a group of objects that share common properties and relationships While class is a blueprint, an object is an actual entity which is an instance of a class. For instance, let's consider a class CAR . A car class defines that a car has characteristics like colour, length, width, height, etc. A CAR class just describes how a car should be like; a CAR object makes it reality by actually creating an entity as per the description of CAR class. LAMBORGHINI IS A CLASS WHEREAS Lamborghini HURRICANE is an object.
icydani what is known as a word?
Object creation is also known as instantiation.
because objects have physical existence and it is a real world entity representing a class think of class as a political party and object as its candidate 😎
That's basically it's definition.
Because we create the object of class with new keyword.
Because object is a "concrete thing" created using specific class as its blueprint. The class describes the concept of the object.
An object is a representative of a class. A class is a collection of functions and variables. You can use an object to specify the class from which you are using a specific functions. There may me same named functions in different classes. So you can use the object to use the function of the specified class. That's why it is called instance of a class.
Instance is something created at a particular instant. Your class is abstract whereas object is a concrete version of your class created at a particular instant. Also objects have values of their own irrespective of the class.
Some programming languages (Java, C++, C#, etc) require that every objects belong to some class. In such languages, objects and instances are identical and are used interchangeably. But strictly speaking, it has a different meaning.
obyekt biror qiymatni o'zida namoyon etadi, sinf esa bu qiymatni tayinlashda ishlatiladi.
An object is a real-world entity which have State, behavior, and Identity. i.e. You are the object of class Student. Note:- An object is the example of a class that is going to represent it in the real world that's why it is called as the Instance(or example) of the class.
This might help Needs work tho https://code.sololearn.com/cuLOWfNaSPuF/?ref=app
its know as a word