I have an application of this type:
A (usually has all pure virtual function ) Abstract Class
In main Program,
where display() is pure virtual in A and then defined in B and C
Everytime I want to add a new method specific to class "C", I have to define that as virtual function in abstract class "A" which is fine. The problem is I have to define that in "B" also (even though it will never be used) because B is also derived from abstract class A
Compiler fails saying some methods are pure virtual in A and needs to be defined.
is there a way I can overcome this of not defining in B?