Home /
Expert Answers /
Computer Science /
section-b-answer-all-questions-20-marks-each-1-convert-the-uml-class-diagram-above-into-a-jav-pa166
(Solved):
Section B: Answer all questions ( 20 marks each) 1. Convert the UML class diagram above into a jav ...
Section B: Answer all questions ( 20 marks each) 1. Convert the UML class diagram above into a java code with the following conditions i. The methods in the Pet class are abstract. ii. Create a class called test. The main 0 method in the test class should create three Cat objects and two Budgie objects. The main0 method should also create indirectly an object of the Pet class. iii. Demonstrate polymorphism in your test class. 2. Write a Java Code for a simple GUI program that creates a frame and changes the background to green.