I have an abstract constructor and a derived class like follows:
abstract ab {
ab();
}
class dc {
dc();
}
I want to execute first the constructor of the derived class and then execute the constructor of the abstract class
Please give me an example.
My suggestion would be to use composition over inheritance.
This links gives more explanation http://tiedyedfreaks.org/eric/CompositionVsInheritance.html