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++
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here