Constructors Programs
Constructors Programs
Constructors Programs
Page 1
GLOBAL IQ COMPUTER EDUCATION CENTRE
P9, A. M. BOSE ROAD, KOLKATA-74
Ph: 25297261/ 9433103218
Prog6. Define a class named Furniture with the following description:
Instance variables/ Data Members:
Member Methods:
i. Furniture ( ) - Default constructor to initialize data member to 0 / empty value
ii. void input ( ) - To input values for data member
iii. void calc ( ) - To modify item_price by reducing 10% of item_weight is more than 15 kg.
iv. void disp ( ) - Print all data members.
Page 2