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

  Compute the transmission line utiliza

Consider that packets arrive at an internet router from 3 different other routers, each with Poisson arrivals with l = 4 per second. The packets are all transmitted on the same transmission line

  Calculating missing women for india at birth

Suppose the sex ratio at birth (males born/ females born) is 1.076 in India and 1.059 on average in the developed countries. Suppose the birth rate is India is 25.8 per thousand people. We will calculate how many women go missing at birth (due to ..

  Are there any differences in their operating characteristic

That is, do different robots have a different error distribution?

  Explain how is a dsl interconnection distinct from the

q1.what are the basic principles that apply to all networks?q2.what is an ethernet card?q3.what does a network switch

  Type of os installed

A single machine (server) that allows multiple users to access that machine simultaneously must have what type of OS installed?

  What is the advantage of using the conditional operator

What is the advantage of using the conditional operator. Explain the rules of operator precedence and how an expression using numeric values and operators would be evaluated.

  The three most important deliverables in scope definition

What are the three most important deliverables in scope definition? What are some benefits and potential problems in using an abrupt cut-over conversion and in using a parallel conversion strategy?

  Build a sorted double-linked list such

For example, you build a list of characters, then you can print it out as: "a b c d e" or "e d c b a". The input is of an random character list is from the keyboard.

  Finding different sizes of newspaper for local newspaper

Comprise a specific recommendation regarding how many different sizes newspaper must offer.

  Pi requests a unit of ri and a unit of r3

pi requests a unit of Ri and a unit of R3.

  Tools to perform project management processes

Describe in scholarly detail the tools and techniques that are used for prforming project management processes.

  Elements of a potential wbs

Q1: Level 1 WBS Elements With reference to the referenced example job drawings list at least 5 Level 1 Elements of a potential WBS. Q2: Level 2 WBS Headings Select 5 of the Level 1 Elements from Q1 and list potential Level 2 Headings under each. ..

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