Question: UML Diagram needed for followiwing code Interface Animal public vold eat; Interface Flyable public vold fly0; Interface Swimmable public vold swim; abstract class Bird Implements

UML Diagramneeded for followiwing code

Interface Animal

public vold eat;

Interface Flyable

public vold fly0;

Interface Swimmable

public vold swim;

abstract class Bird Implements Animal

@Override

public vold eat {

System.out printin('eating seeds...");

public vold layEggs0 {

System.out printin("Laying eggs...");

}

class CanadianGoose extends Bird Implements Swimmable, Flyable{

private String name;

public static final String scientificName-"Branta canadensis";

public CanadianGoose(String name) ( this.name=name;

@Override

public vold ty0 {

System.out printin(*Let's go high in the sky..");

@Override

public vold swim0 {

System.out printin ("Splash.. Splash");

}

}

class EmperorPenguin extends Bird Implements Swimmable

private String name;

public static final String scientificName-"Aptenodytes forsteri";

public EmperorPenguin(String name) {

this.name=name;

@Override

public vold swim {

System.out printin("Let's dive");

class Budgie extends Bird Implements Flyable{

private String name;

public static final String scientificName-"Melopsittacus undulatus";

public Budgie(String name) {

this.name=name;

}

@Override

public vold fly0 {

System.out printin("Let's fly");

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!