object-composition

Is there Method Inheritance in C#

I am wondering whether there is any feature like method inheritance rather than whole class inheritance, let me elaborate what I am trying to explain : class a { public void GetA(){ // some logic here } } class b { public void GetB() : new Class().GetA() } I know it looks weird but I was reading how to do delegation in ob...

Difference between inheritance and composition

I have extracted following difference between inheritance and composition. I wanted to know what does delay of creation of back end object mean? Please find below difference. Composition allows you to delay the creation of back-end objects until (and unless) they are needed, as well as changing the back-end objects dynamically through...