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.
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?
|