Menu
Question Index
...

Which of the following class have used the Shape class correctly?

public abstract class Shape {
    public abstract void draw();

    "Insert code here"

}


public abstract class Triangle extends Shape {
    private int side;
}
public abstract class Triangle implements Shape {
    public void draw() {
    }
}
public class Triangle extends Shape {
    public void draw();
}
None of the above

Doubts

Problems

Topic: Java Access Modifiers With Example Program

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App