A computing device has many attributes cpu type and speed


C# Program on inheritance and polymorphism.

Your job is to build a set of classes and use a base class reference to refer to an object of a derived type. 

A Computing device has many attributes. CPU Type and speed, RAM capacity, secondary storage type (HDD, SSD, flash), and others. Now computing devices come in different types: laptops, desktops, Smart phones, tablets, etc (look them up)

You will be designing a set of class for at least four computers that all inherit (directly or indirectly) from the base class (computing_device). Here is what you need to have:

The base class must be declared as an abstract class

There should be a abstract method in the base class called print_specs() that prints out the specifications of a computing device.

You have to demonstrate polymorphism in your Main() method using a base object reference to call functions from derived objects. Your constructors should print out that "Object has been created of type XXX" where XXX refers to the class type.  where XXX refers to the class type.

It is your jobs to make sure all setter and getters (accessors and mutators)  OR properties (prefered)  are in each class and any other appropriate methods.

There are a lot of loose ends. This is how it is in real life, you begin with your own design which should have all sufficient aspects of the problem in hand and then tailor that based on customer (stakeholder) interest.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: A computing device has many attributes cpu type and speed
Reference No:- TGS01476679

Now Priced at $30 (50% Discount)

Recommended (97%)

Rated (4.9/5)