NJNagaraj Jadhav·Feb 20, 201810In object oriented programming what is the difference between inheritance and composition and which one is betterI notice most people prefer composition over inheritance but i don't know what exactly is the difference between two.Join discussion