One method
in many form
Increase
speed(int a)……………………………call this method with different value.
example:
Class Sample
{
public void display(int a)
{
System.out.println(a);
}
public static void main(String arg[])
{
Sample s =new Sampl();
s.display(5);
}
}
output:
5
No comments:
Post a Comment