V
vertigo
Hello
i have:
public class A
{
....
class AA {...}
function(){ AA a = new AA()}
}
and:
public class B extends A
{
//i want to have new class AA
class AA {...}
function(){ AA a = new AA()}
}
but compiler does not want to compile, because in class B it sees two
definition for AA class. I want to see in B class only new definition
of AA class (overshadow it). Is it possible ? (new AA class can not
inheritate from old AA class because it's quite different)
Thanx
Michal
i have:
public class A
{
....
class AA {...}
function(){ AA a = new AA()}
}
and:
public class B extends A
{
//i want to have new class AA
class AA {...}
function(){ AA a = new AA()}
}
but compiler does not want to compile, because in class B it sees two
definition for AA class. I want to see in B class only new definition
of AA class (overshadow it). Is it possible ? (new AA class can not
inheritate from old AA class because it's quite different)
Thanx
Michal