Program
abstract class Vehicle{
int modifier;
public void accelaration(){
System.out.println("In vehicle accelaration…");
}
}
class Car extends Vehicle{
public void breaking(){
System.out.println("In car breaking…");
}
}
class TestAbstract{
public static void main(String args[]){
//Vehicle v=new Vehicle();
Vehicle v=new Car();
v.accelaration();
Car c=new Car();
c.breaking();
}
}