- There are two types of parameter .
- Passing Parameter
- . Returning Methods
Example:-
public class MyClass
{
public static void main(string[] args)
{
CastorClass(“Online”)
public static void CastorClass(string name)
{
System.out.println(“Online Class” +name); //This is a passing parameter .
}
}
0 Comments:
Post a Comment