V
Vasileios Zografos
Hi everyone,
ok assume that I have a class named Vertex3D with 3 simple member
variables x,y,z.
and I create a child class named SpecialVertex3D that has an extra
variable E.
can I do something like
Vertex3D v1;
SpecialVertex3D s1;
s1=v1;
???
Well, my compiler complains so probably I cannot. any other way apart
from creating an "operator=" method?
ok assume that I have a class named Vertex3D with 3 simple member
variables x,y,z.
and I create a child class named SpecialVertex3D that has an extra
variable E.
can I do something like
Vertex3D v1;
SpecialVertex3D s1;
s1=v1;
???
Well, my compiler complains so probably I cannot. any other way apart
from creating an "operator=" method?