I h'v some problem in writing program using static
class.
Program
import java.io.*;
static class Test
{
public Test()//constructer
{
System.out.println("This is Static Class");
}
}
class TestOne extends Test
{
public TestOne()//constructer
{
System.out.println("This is Child Class");
}
public class Inheritance
{
public static void main(String []args)
{
TestOne t=new TestOne();
}
}
pls correct any problem and Tell me what is the
Output.
Main problem is Static class can't Inheritaed.