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 object composition pattern and I thought this pattern for some reason.