Create a class named Employee which contains an employee name, available to the entire program (public), and an employee ID number and hourly pay rate, available only to the members of the Employee class (private).  Also write a constructor (the __init__ member function) which accepts a pay rate and changes it to 7.25, if the value entered is less than that.  Do not write any accessor or mutator methods for the class.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question

Create a class named Employee which contains an employee name, available to the entire program (public), and an employee ID number and hourly pay rate, available only to the members of the Employee class (private).  Also write a constructor (the __init__ member function) which accepts a pay rate and changes it to 7.25, if the value entered is less than that.  Do not write any accessor or mutator methods for the class.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,