c++
We want to store the information of different computers.
(a) Create a class named Computer with five data member named CPU type, clock speed, RAM, storage and price.
(b) Create its two subclasses:
• Desktop with data members to store tower size, warranty (by years),
and PSU wattage.
• Laptop with data members to store screen size, weight, and battery
life.
(c) Make another two subclasses Dell and HP for Desktop, each having a data member to store the model type.
(d) Next, make two subclasses Apple and Lenovo for Laptop, each having a
data member to store the make-type.
(e) Add a print function to the base class (Computer) and override it in all
the subclass. The print function of each class should print a list of all its
data members, each on a separate line.
(f) Now, store all the information of a Dell and a HP computer , and print
them using print function.
(g) Do the same for a Apple and a Lenovo laptop.
(h) Draw the UML of this program.
NOTE: Data members of all of the classes should be private