Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Static class Inheritance

  Asked By: Sebastion    Date: Aug 31    Category: Java    Views: 759
  

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.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Static class Inheritance Or get search suggestion and latest updates.




Tagged: