CSC-113-Tutorial 5 - +displayAddress() Friend Colleague...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
KSU / CCIS / CS DEPARTMENT CSC-113, SPRING 2010 TUTORIAL 5 – INHERITANCE Translate the following into java code: Contact #name: string #phone: string +Contact(name: string, phone: string) +displayNameAndPhone()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: +displayAddress() Friend Colleague -address: string +Friend(name:string, phone: string, address: string) +displayAll() +Colleague(name:string, phone: string) +displayAll()...
View Full Document

This note was uploaded on 11/28/2011 for the course COMPUTER S 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.

Ask a homework question - tutors are online