Create an Employee data type, and then create three employee objects. Each employee object has his/her name, employee ID, and balance. Set the first employee object’s name as “Lacey”, ID as 1234, and balance as 100; Set the second employee object’s name as “Dylan”, ID as 5678, and balance as 0; Set the third employee object’s name as “James”, ID as 9012, and balance as 50; Write a method for withdrawing money; Write a method for depositing money; Create one constructor for the objects Lacey and James, and one constructor for the object Dylan; Set the fields as private. Withdraw 50 on all three employees, and after that display each of their names, IDs, and balances.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 9E
icon
Related questions
Question
Create an Employee data type, and then create three employee objects. Each employee object has his/her name, employee ID, and balance. Set the first employee object’s name as “Lacey”, ID as 1234, and balance as 100; Set the second employee object’s name as “Dylan”, ID as 5678, and balance as 0; Set the third employee object’s name as “James”, ID as 9012, and balance as 50; Write a method for withdrawing money; Write a method for depositing money; Create one constructor for the objects Lacey and James, and one constructor for the object Dylan; Set the fields as private. Withdraw 50 on all three employees, and after that display each of their names, IDs, and balances.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Table
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,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT