Program on inheritance and polymorphism

Assignment Help Basic Computer Science
Reference no: EM131098657

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.

Reference no: EM131098657

Questions Cloud

High-interest rates cure high inflation-high unemployment : In order to reduce the high inflation and high unemployment of the 1970s, the Federal Reserve decided to raise interest rate to astronomical levels. How can high-interest rates cure high inflation and high unemployment? What are the consequences of s..
Calculate consumer surplus at the market equilibrium : The market for a case of wine has been described by the following supply and demand functions: At the market equilibrium price, what would be the total monthly revenue? Calculate consumer surplus at the market equilibrium and indicate this surplus as..
Write about the black death plague : Go online and study more about the Black Death Plague -  list several areas of the humanities that you believe were influenced within the culture and how they were affected
Unemployment is largely voluntary : Some economists argue that unemployment is largely voluntary and other say it is largely involuntary. Pick a point of view and argue for it. Feel free to use real examples for your answer, be sure to address the other side as well, that is not only w..
Program on inheritance and polymorphism : 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)
Find the socially optimal division of the total income : Social Welfare: A social planner has decided to allocate income between two people so as to maximize the sum of utilities of persons 1 and 2 (W = U1 + U2). Determine the marginal rate of transformation of person 1’s income into person’s 2’s income, i..
Analyze three current advancements in technology : Analyze three current advancements in technology that the criminal justice system has implemented and how this technology has aided the criminal justice system in either solving crime or related to police, courts or corrections.
Find all pure-strategy nash equilibrium : Consider a game in which there is a prize worth $30. There are three contestants, A, B, and C. Each can buy a ticket worth $15 or $30 or not buy a ticket at all. They make these choices simultaneously and independently. Find all pure-strategy Nash eq..
What is the typical site of origin of leptin hormone : What is the typical site of origin of leptin hormone - In a normal person, what is the effect of elevated leptin levels in the bloodstream?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd