Question: JAVA 2. Answer the following questions. (5 marks) b) Find the following assignments are true or False. a) Draw the class diagram in BleuJ using
JAVA
2. Answer the following questions. (5 marks) b) Find the following assignments are true or False. a) Draw the class diagram in BleuJ using the following hints. (i) Reptile r1= new Mammal(); FALSE Animal is the superclass of Mammal class. (ii) Animal a1 = new Dog();TRUE Animal is the superclass of Reptile class c) Show any example to Override the method. Mammal and Reptile are subclasses of Animal class Dog is the subclass of both Mammal and Animal class d) Consider the following: Animal a1=new Mammal(; Animal a1 = new Dog 0 ; What is the type of the a1? What is the static type and dynamic type of a1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
