Computer Applications
Write a difference between class and object.
Objects & Classes
2 Likes
Answer
A class is a blue print that represents a set of objects that share common characteristics and behaviour whereas an object is a specific instance of a class having a specific identity, specific characteristics and specific behaviour.
Answered By
1 Like
Related Questions
Mention three characteristics and two methods for the following Classes:
Class Bike
Mention three characteristics and two methods for the following Classes:
Class Fruits
Mention three characteristics and two methods for the following Classes:
Class Pen
Design a class program to calculate the discount given to a customer on purchasing LED Television. The program also displays the amount paid by the customer after discount. The details are given as:
Class name : Television
Data members: int cost, int discount, int amount
Member functions:
Accept( ) : to input the cost of Television
Calculate( ) : to calculate the discount
Display( ) : to show the discount and the amount paid after discount