KEMBAR78
OOP - Lab Task-5 - UML To JAVA Code-1 | PDF
0% found this document useful (0 votes)
14 views2 pages

OOP - Lab Task-5 - UML To JAVA Code-1

The document outlines a lab task to convert UML diagrams into Java code for two applications: a Mobile management system and a PhoneBook. The Mobile class includes methods for inserting, displaying, searching, and deleting mobile records, while the PhoneBook class manages friends' contact details with similar functionalities. Students are required to implement one of the applications as part of the task, with the other being assigned as homework.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

OOP - Lab Task-5 - UML To JAVA Code-1

The document outlines a lab task to convert UML diagrams into Java code for two applications: a Mobile management system and a PhoneBook. The Mobile class includes methods for inserting, displaying, searching, and deleting mobile records, while the PhoneBook class manages friends' contact details with similar functionalities. Students are required to implement one of the applications as part of the task, with the other being assigned as homework.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab Task – 5

UML to JAVA Code

Solve Any One (other one is Home work)

1. Convert the above UML into Java Code.


➢ Store details of Mobiles.
➢ Display all the Mobile List.
➢ Search for a friend by their Name/Code/Brand.
➢ You can edit or delete any their information.

Mobile
MyClass
-name: String
has
-code: int
+main(String) : void
-price: double
-brand: String

+insertRecord (String , int, double, String) : void


+displayRecord():void
+searchRecord(String, code, brand) : void
+deleteRecord(int): void
2. Suppose you are going to design a PhoneBook to store contact details of
your friends.
You can -
➢ Store Name, Phone Number and Email Address of your Friends.
➢ Display all the Friend List.
➢ Search for a friend by their Name/Phone/Email.
➢ You can edit or delete any their information.

PhoneBook
-name: String
-phone: String MyClass
-email: String
has
+main(String) : void
+setName(String):void
+setPhone(String) : void
+setEmail(String) : void
+getName() : String
+getPhone() : String
+getEmail() : String

You might also like