abstract class Shape
{
public abstract void DispO:
class Triangle extends Shape
public final void Dispo
1
System out.println("Triangle");
)
>
class Rectangle extends Triangle
public void Dispo
System.out.println("It's Rectangle"),
public class Main
public static void main(String[] args)
{
Rectangle obj = new Rectangle();
obj.Dispo:
Answers
Answered by
1
Answer:
can't understand ..........?
Answered by
0
Answer:
class B extends A{ public static void main( String args[]){. A a = new A(); a.get(5,6); a. Show();. } void display(){. System.out.println("B ..
Similar questions