CSC113_Lab4 - King Saud University College of Computer and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
College of Computer and Information Systems, Department of Computer Science CSC 113: Java Programming-II, Spring2011, February 21, 2011 Lab #4 : Relationships between Classes WRITE CODE FOR THESE THREE CLASSES PLUS ITS MAIN WHERE: Employee Methods a. Employee(in Emp: Employee): Copy Constructor Employee - Name: String - Id: integer - Salary: Double +Employee(in Id: int, in Sal: Double, in n: String) + Employee(in Emp: Employee) +getID():int +getSal():Double +GetName:String +setID(in id:int) +setSal(in sal:Double) +setName( in S: String) +Display() Organization - Name: String - Capital: Double +Organization(in n:string, in Capital:Double, in size:int) +Display() +IsFull(): bool +IsEmpty():bool +CopyOrg(in org: Organization) +AddEmp(in Emp: Employee): bool * 1 King Abdulazziz City (KACST) -name: String +KACST(in size:int, in n:String) +Display(in name: string) +IsEmty():bool +IsFull():bool +GetOrg(in name:String): Organization +search(in name:string): int +SumCap():Double
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

CSC113_Lab4 - King Saud University College of Computer and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online