import java.io.*;
import java.lang.*;
class vehicle
{
String name,colour;
int number;
public void getdetail(String n)
{
name=n;
System.out.println("name of the vehicle: "+name);
}
public void getdetail(String col,int num)
{
colour=col;
number=num;
System.out.println("colour of the vehicle: "+colour);
System.out.println("number of the vehicle: "+number);
}
}
class twowheeler extends vehicle
{
public void getdetail(String n)
{
System.out.println("name of the two wheeler: "+name);
}
public void getdetail(String col,int num)
{
colour=col;
number=num;
System.out.println("colour of the two wheeler: "+colour);
System.out.println("number of the two wheeler: "+number);
}
}
class fourwheeler extends vehicle
{
public void getdetail(String n)
{
System.out.println("name of the four wheeler: "+name);
}
public void getdetail(String col,int num)
{
colour=col;
number=num;
System.out.println("colour of the four wheeler: "+colour);
System.out.println("number of the four wheeler: "+number);
}
}
class testpoly
{
public static void main(String args[])
{
System.out.println("Two wheeler details: ");
twowheeler t=new twowheeler();
t.getdetail("pulsor");
t.getdetail("black",4000);
System.out.println("Four wheeler details: ");
fourwheeler f=new fourwheeler();
f.getdetail("tvs");
f.getdetail("blue",4000);
}
}



 OUTPUT: