Question: Create a class iphone and following are the data members: model, color, year and a method print() that prints the iphone information. Create another dlass
Create a class iphone and following are the data members: model, color, year and a method print() that prints the iphone information. Create another dlass "TimePurchased" having the data members as hour, minute, second and a print method that prints the hour, minute and second. Create an object of advance data type iphone and Timepurchased and print the values of model, color, year and hour. 3:43 PM
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
