Question: I need help on how to get started on this OOP practice problem: CompX is a company that sells two main types of computing machines,

I need help on how to get started on this OOP practice problem: CompX is a company that sells two main types of computing machines, Desktops and laptops. All desktops come in two types. Regular desktops and all in one (AIO) Desktops. Regular desktops will have a CPU type and speed, RAM capacity, at least one secondary storage device (HDD or SSD), each of these will have a type and capacity. A regular desktop will also have a form factor (ATX, Micro-ATX, or a mini ITX). AIO will have the same except for a form factor and will have only one secondary drive but will have a screen size and type (touch vs. non-touch). AIO has also speakers. Laptops will have a CPU type and speed, RAM capacity, CompX only sells laptops with one secondary drive. Laptops will also have Wifi card type and speakers. Laptops will have a screen size and type (touch vs. non-touch. Your job is to create the classes needed to map the objects in the description above to code showing OOP practice. Abstraction: The abstraction comes from the base class machine that will have a method (or function) called public abstract string getDescription(); // returns the description of a particular machine Encapsulation: Need to show the proper data and operation on it as well as the access modifiers. Using C# properties makes your life easier in coding (the compiler does a lot of the work) Inheritance: Make sure to reuse as much as possible. Do not forget to override getDescription() Polymorphism: You need to show that you use a base class reference to refer to a subclass object. For this assignment, create a driver program that shows polymorphic behavior by creating several instances from your classes and then referencing to these objects with a base class reference Your code will have several classes plus the main (driver) class in it. Provide any documentation behind the rational used for your coding style or design. Please, do not forget about the comments.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!