Computer Science
An object is referred to as an instance of a class. Explain.
Objects & Classes
4 Likes
Answer
A class can create objects of itself with different characteristics and common behaviour. So, we can say that an Object represents a specific state of the class. For these reasons, an Object is called an Instance of a Class.
Answered By
2 Likes
Related Questions
Television set is a real world object. Explain.
Give two differences between Polymorphism and Inheritance.
Class and Object are inter-related. Justify this statement.
Design a class 'AddDist' with the following specifications: class AddDist
Data members/Instance variables
int km, mts, cm
Member methods:
void getdist( ) : to accept a distance in km, mts and cm. void showdist( ) : to display the distance in km, mts and cm.
Write a main function to create an object of class 'Add_Dist' and call the member methods.