Implement the following class Employee. This class is composed by 4 attributes and 3 methods. 1) Create a class Employee containing: . __init__() method to initialize the different attributes • Get EmployeeName method • Get EmployeeSSN method • Get EmployeeDepartment method 2) Define the method main to create 4 employees and apply the different methods

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question
Implement the following class Employee. This class is composed by 4 attributes and 3 methods.
1) Create a class Employee containing:
_init_(
) method to initialize the different attributes
.
Get EmployeeName method
Get EmployeeSSN method
. Get EmployeeDepartment method
2) Define the method main to create 4 employees and apply the different methods
Employee
# Name:
# Social Security Number:
# Department
# Salary
+
+
Get Employee Name()
Get Employee Social Security Number()
+ Get Employee Department()
3
Transcribed Image Text:Implement the following class Employee. This class is composed by 4 attributes and 3 methods. 1) Create a class Employee containing: _init_( ) method to initialize the different attributes . Get EmployeeName method Get EmployeeSSN method . Get EmployeeDepartment method 2) Define the method main to create 4 employees and apply the different methods Employee # Name: # Social Security Number: # Department # Salary + + Get Employee Name() Get Employee Social Security Number() + Get Employee Department() 3
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

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