class Circle
{
double radius; // Radius of a circle
Circle()
{
} // Class constructor
Circle(double theRadius) {
radius = theRadius; // Set the radius
}
}
public class MainClass {
public static void main(String[] arg) //main method
{
Circle sp = new circle();
}
}
Saturday, May 29, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment