Employee, which has three private class variables

Assignment Help Basic Computer Science
Reference no: EM13664728

Create a class Employee, which has three private class variables (Name, Address, PhoneNumber), access methods to get and set each of these properties, and two constructors (one 0-argument constructor and the second setting property values to specific values passed to the constructor).

Create a class SalaryEmployee, which extends Employee and adds one more property (Salary) with proper set and get methods. Add one more method ByWeeklyPay of type double.

Create a class HourlyEmployee, which extends Employee and adds two more properties (HourWage and HoursWorked) with relevant get and set methods. Add one more getPayAmount method.

Create a class UseEmployee, which will instantiate objects of each of the classes above (Employee, SalaryEmployee, HourlyEmployee) with particular values (take any values of the proper data type) and display the information on all properties of an Employee object created, a SalaryEmployee object created, and an HourlyEmployee object created.

Compile, run, and check the results. Submit the following:

1.The source file (If more than one file has been created, zip them into one .zip file for posting.)

2.The UML class diagram illustrating class hierarchy

Reference no: EM13664728

Is your workspace ergonomically designed

Is your workspace ergonomically designed? Do some research into the field of ergonomics. As a response to this topic, report your findings to the class, be sure to cite your

Comp dq microsoft''s website

This discussion board allows you to work with Word templates available on Microsoft's website. First, download a Word template from Microsoft.com by clicking Office, then Te

Write an algorithm that given a directed graph

Write an algorithm that given a directed graph G, nds a sink or returns that one does not exist in only O(|V|) time. The graph is given by adjacency matrix A. Notice that a

Programming looping structures

Looping structures are key design structures used in programming languages. The ability to repeat code is a powerful tool and can save many lines of code; however, if a loop

Principles of good design and usability attributes

All assignments must be prepared in double-space format, 12 pt. type (preferably TimesRoman), and should include a title page, table of contents, and reference list. Allsubmit

Venture required rate of return

Estimate a venture's required rate of return based on the following information: terminal value = $400,000; current year's net income = $20,000; next year's expected cash f

Design a system of three lans with four bridges

Design a system of three LANs with four bridges. The bridges (B1 to B4) connect the LANs as shown below. Show diagram in Word and use any diagramming tool to demonstrate the

What will occur to supply-demand in short-term and long-term

Price of product in short-term and long-term also describe why you think supply, demand, or equilibrium price will be different, if at all, in short-term and long-term.


Write a Review

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