KKU-CS-113/ 222-CSM Manug 3. Write a java program corresponding to the following UML diagrams and test your codes (b) Publication #auther: String * year: int • Publication(auther: String, year:int) +...

In javaKKU-CS-113/ 222-CSM<br>Manug<br>3. Write a java program corresponding to the following UML diagrams and test your codes<br>(b)<br>Publication<br>#auther: String<br>* year: int<br>• Publication(auther: String, year:int)<br>+ getYear():int<br>+getAuther(): String<br>+ setvearly: int): void<br>+ setAuther(a: String): void<br>Person<br>name: String<br>-address:String<br>Person(name:String, address:String)<br>getName ():String<br>+getAddress():String<br>+setAddress(address:String):void<br>+tostring():String<br>{

Extracted text: KKU-CS-113/ 222-CSM Manug 3. Write a java program corresponding to the following UML diagrams and test your codes (b) Publication #auther: String * year: int • Publication(auther: String, year:int) + getYear():int +getAuther(): String + setvearly: int): void + setAuther(a: String): void Person name: String -address:String Person(name:String, address:String) getName ():String +getAddress():String +setAddress(address:String):void +tostring():String {"Person[name=?, address=?}" extends 4 Book - nbpage: int + Book(auther: String, year: int, pages: int) + getAuther(): String + getPagest): int + setAuther(n: String): void + setPages(p: int): void Student Staff -progran:String year:int -fee:double +Student (name:String, address:String, progran: String, year:int, fee:double) +getProgram():5String +setProgram(program:String):void *getYear():int +setYear (year:int):void +getfee(): double +setfee(fee:double):void +tostring():String -school:String pay:double +Staff(name:String, address:String, school:String, pay:double) *getSchool():String +setSchool(school:String): void *getPay():double +setPay(pay:double):void +tostring():String• "Staff(Person[nane-?, address-?), schoole?,paya?]" "Student[Person[name-?, address-?1, progran-t, year?, fee-?]"

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here