Computer Applications
Mention three characteristics and two methods for the following Classes:
Class Fruits
Objects & Classes
42 Likes
Answer
Characteristics | Methods |
---|---|
name | buy() |
quantity | sell() |
cost |
Answered By
23 Likes
Related Questions
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 discountMention three characteristics and two methods for the following Classes:
Class Mobile Phone
Mention three characteristics and two methods for the following Classes:
Class Pen
Mention three characteristics and two methods for the following Classes:
Class Bike