Friday, April 1, 2011

classes and interfaces

/*
RULE: classes and interfaces
the first letter of the word should be Capital and connectig word letter also capital
the name should be nouns
*/

class Dog
{
public static void main(String[] args)
{
System.out.println("Hello Dog!");
}
}

class PrintWriter
{
System.out.println("this is class");
}

interface Car
{
}
interface Runnable
{
}