Question: Section B Pet IS Pet(name:String. Og getame() String gotowe String A Cat Badgie COSTA ESTE number of teeth int Lengthortalist Cathering. Dette: String numberorTeeth:int Lengthoraitinti

 Section B Pet IS Pet(name:String. Og getame() String gotowe String A

Section B Pet IS Pet(name:String. Og getame() String gotowe String A Cat Badgie COSTA ESTE number of teeth int Lengthortalist Cathering. Dette: String numberorTeeth:int Lengthoraitinti getumberTeetho Lot - getLengthoftilo in ting. coloerotett Colour: String 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() method in the test class should create three Car objects and two Budgie objects. The main() method should also create indirectly an object of the Pet class. Demonstrate polymorphism in your test class 2. Write a Java Code for a simple GUI calculator application. The program should be able to handle user errors. Use more than one layout manager in your code. 3. Implement a simple stack in java using the scenario below. Acompany wishes to keep track of the order in which it employed staff. User can enter either "f" to fire, "h" to hire or "e" to end program. When a member of staff is employed, their employee number is added to the top of a stack when someone has to be made redundant, the last person to join the company is removed from the top of the stack Hint: Use ArrayList Examiner's Name: George Kodjo Anni

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!