This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: +Staff(s:Staff) +getter/Setter() +Display():void Parttime +Parttime(ids:int,sname:String) +Parttime(p:Parttime) +Charge(noofdays:int):double Fulltime +Fulltime(ids:int,sname:String) +Fulltime(p:Fulltime) +Charge(noofdays:int):double King Saud University College of Computer and Information Systems, Department of Computer Science CSC 113: Java Programming-II, Spring2011, February 21, 2011 Lab #7 : Interface and Abstract classes Write a Java Program to implement the class staff, parttime and full time with a interface In the method charge of Parttime Calculate = 250 * 2 *30 days In the method charge of Full time= 500 * 8 * 30 days Write a main class to show the static calculation. Calling all the methods...
View Full Document
This note was uploaded on 08/18/2011 for the course COMPUTER S CSC 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.
- Spring '11
- Java Programming