Q/ write C++ program to create class called laptop, that contains data members of price, code, and speed. Also create a class called tablet, it has the same data members of class laptop in addition to...

i need the answer quicklyQ/ write C++ program to create class called laptop, that contains data<br>members of price, code, and speed. Also create a class called tablet, it has<br>the same data members of class laptop in addition to name and weight.<br>Both classes have constructors to enter values by user and function to<br>display values. The laptop class has a friend function to print the speed of<br>the laptop that has highest price among three computers<br>

Extracted text: Q/ write C++ program to create class called laptop, that contains data members of price, code, and speed. Also create a class called tablet, it has the same data members of class laptop in addition to name and weight. Both classes have constructors to enter values by user and function to display values. The laptop class has a friend function to print the speed of the laptop that has highest price among three computers

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here