// Program
package mypackage1;
public class CAL
{
public int product(int a, int b)
{
return a*b;
}
public static void main(String args[])
{
CAL obj = new CAL();
System.out.println("Product="+obj.product(15, 12));
}
}
import mypackage1.CAL;
public class Demo
{
public static void main(String args[])
{
CAL obj = new CAL();
System.out.println("Product="+obj.product(10, 17));
}
}
package mypackage1;
public class CAL
{
public int product(int a, int b)
{
return a*b;
}
public static void main(String args[])
{
CAL obj = new CAL();
System.out.println("Product="+obj.product(15, 12));
}
}
import mypackage1.CAL;
public class Demo
{
public static void main(String args[])
{
CAL obj = new CAL();
System.out.println("Product="+obj.product(10, 17));
}
}
Good one
ReplyDelete