D
dust
I have a class/stucture A which is abstract as it contains all pure
virtual
member functions. Now I have to call a function (i.e. void func(A&
client)),
but this function is expecting reference to object of type A. Since A
is abstract, I can't create an object, so how can I send an object to
this function? or how do deal with such situation.
virtual
member functions. Now I have to call a function (i.e. void func(A&
client)),
but this function is expecting reference to object of type A. Since A
is abstract, I can't create an object, so how can I send an object to
this function? or how do deal with such situation.