Sat Jan 31, 2009 2:29 am
class <OuterNameofClass> {
// variables and methods for the outer class
class <NestedNameofClass> {
// variables and methods for the nested class
}
}
public class Main {
public static void main(String[] args) {
outterclass outobj=new outterclass();
outterclass.innerclass innerobj=outobj.new innerclass();
}
}
class outterclass {
class innerclass
{
}
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.