|
Hello to everybody, I have a question that is
related with java programming in general. I have a class with a constructor in
myClass:
public myClass{
public MyConstructor(String a,String
b, int t) throws Exception
{
}
public void createEmptyTableCell(int
column,boolean master)//*************Overrideable method
.
.
.
}
But when I am overriding the method :
MyClass myObj=new
MyClass("a","b",1)//***************Error line**********
{ public void createEmptyTableCell(int column,boolean master)//************Overriding the method
{
}
}
I am getting the following compilation
error:
"testservlet.java": Error #: 360 : unreported
exception: java.lang.Exception; must be caught or declared to be thrown at line
32, column 28
I hope you can help me to solve this problem
without using heritage. I tried writing a try-catch and a throws in the line of
the error but that's not the solution.
Thanks in advance .
Omar Vera.
|
- Re: Overriding methods(advanced) Omar Diego Vera Ustariz
- Re: Overriding methods(advanced) John Zukowski
