Consider the class and client code below. public class Aplus { public double go( double a ) { return a * 3; } public double fun( double

Consider the class and client code below.
public class Aplus
{
public double go( double a )
{
return a * 3;
}
public double fun( double b )
{
return go( b ) + b;
}
}
//client code in another class
Aplus x = new Aplus;
System.out.println( x. fun(3) );


CategoriesUncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *