feturns true if the department=" IT" and false otherwise. Employee -id:int -mame:String +Employee() +Employee(id:int,name:String) +getId0:int +setId(id:int):void +getName():String +setName(name:String):void +toString():String Faculty -department:String + Faculty() + Faculty(id:int,name:String, department:String) +getdepartment (): String +setdepartment (department:String) void +ITdepartment( department:String):boolean +toString):String

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
1.Create a java application called Employee, then create 2 classes according to the following UML diagram.
Note: ITdepartment method returns true if the department=" IT" and false otherwise.
Employee
-id:int
-mame:String
+Employee()
+Employee(id:int,name:String)
+getId0:int
+setId(id:int):void
+getName():String
+setName(name:String):void
+toString():String
Faculty
-department:String
+ Faculty()
+ Faculty(id: int,name:String, department:String)
+getdepartment (): String
+setdepartment (department:String) void
+ITdepartment( department:String):boolean
+toString():String
Transcribed Image Text:1.Create a java application called Employee, then create 2 classes according to the following UML diagram. Note: ITdepartment method returns true if the department=" IT" and false otherwise. Employee -id:int -mame:String +Employee() +Employee(id:int,name:String) +getId0:int +setId(id:int):void +getName():String +setName(name:String):void +toString():String Faculty -department:String + Faculty() + Faculty(id: int,name:String, department:String) +getdepartment (): String +setdepartment (department:String) void +ITdepartment( department:String):boolean +toString():String
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Methods of StringBuilder 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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage