T
Thomas Kowalski
Hi everyone,
following situation:
class A
{
void m(T value) =0;
}
class B : A
{
void m(TA value);
void m(TB value);
}
class T
{
}
class TA : T
{
}
class TB : T
{
}
The original methode A::m(T) is not overriden, just hidden by B::m. Is
B an "abstract" class and have to overwrite m(T) specificly? Can a
methode call like this be resolved like expected according to the
C++Spec:
B b;
TA ta;
b.m(ta);
Thanks in advance,
Thomas Kowalski
following situation:
class A
{
void m(T value) =0;
}
class B : A
{
void m(TA value);
void m(TB value);
}
class T
{
}
class TA : T
{
}
class TB : T
{
}
The original methode A::m(T) is not overriden, just hidden by B::m. Is
B an "abstract" class and have to overwrite m(T) specificly? Can a
methode call like this be resolved like expected according to the
C++Spec:
B b;
TA ta;
b.m(ta);
Thanks in advance,
Thomas Kowalski