2. Write a C++ program that creates a class called laptop. The data members of the class are Ø brand (string) Ø serial (int) Ø color (string) Ø price (float) Ø processor_speed (double) 1. The...


2. Write a C++ program that creates a class called laptop. The data members of the class are



Ø brand (string)



Ø serial (int)



Ø color (string)



Ø price (float)



Ø processor_speed (double)



1. The constructor should accept the laptop brand, model, serial, color, price, processor speed, ram and screen size.



2. Make a member function name display to display the value of all attributes.



3. Make 2 objects of laptop and display its values.



After displaying the results you should require to destroy the objects via Destructor


Programming language : C++



Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here