The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Assume a class hierachy to be created has he following classes:
1.an employee having first name, last name and socail security number;
2.a salaried employee having a monthly slary;
3. a commission employee having monthly total sales and commission rate;
4. an hourly employee having and number of hours worked in a month and overtime paid 1.5 times the hourly wage if huors exceed 40;
5.a commission salaried employee who earns a monthly basic salary plus a commission on monthly sales;
2. Consider the following description. Retcangles and circles are geometric shapes.Each Geometric shape can describe itself by specifying its radius area and diameter and circumfrence/perimeter.On the other hand a rectangle describes itself using length,width,area and perimeter .
describe a class hierachy tha depicts the relationship between circles and rectangles wiith geometric shapes> tour class hierachy should have atleast three classes e.g GeometricShapes.Rectangle and Circle.The GeometricShapes class should be an abstractt class while the Rectangle and Circle classe shold be concrete classes>Identify the suitable data members together with methods for each class .Use class hierachy to write a to wwrite a java apllication that implements inheritance as highlighted in the hierarchy >.In addition use object references to superclass GeometricShapes to demonstrate polymorphism.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll