I have ChildClassA
, ChildClassB
and ChildClassC
.
They all inherit from ParentClass
.
How can I declare an already implemented method
for A
and B
, but which is not needed in C
?
Implementation in
ParentClass
doesnt make sense, since I only need it inA
andB
.C# does not support multiple inheritance (if this would even be my best option).
An interface is not helping me because I cannot implement a method there.