Write an progarm that has has d emplyee as the base class with the following reqirements:?
-
write an progarm that has has d emplyee as the base class with the following reqirements: a-> emp class must have two member variable,billrate and name.the billrate vraiable should be accessble to drived class bt the name variable should not be accessble to the drived classes. b-the emp class should also hve abstract methods,calculate charges(float hours) and Type NAME c- the emp class should also hve an overloaded constructor to initialize the member variable. d- the executive and manager class shold be the two subclasses the are drived from the emp base class.the contructor of drived class should invoke the contructor of the base class. e-accept the value of the variable, billrate for manager and executive class call the calculate charges(float hours) method to calculate the charges. f-the main() method should create objective of the drived classes and invokes their methods and displying the values plz help me...................i m a biggner
-
Answer:
Try this -
Joy Patra at Yahoo! Answers Visit the source
Other answers
Try this -
Related Q & A:
- Is it correct to extend a bean class and write a class which holds logic to populate the bean we extend?Best solution by stackoverflow.com
- Write the chemical formula for the following compounds?Best solution by Yahoo! Answers
- Which D&D books should I buy?Best solution by Ask.Metafilter.Com
- How to identify the acid, base, conjugate acid, and the conjugate base?Best solution by ehow.com
- Write a balanced net ionic equation for the following reaction?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.