組合物件 vs 繼承

what’s the pros and cons between Inheritance and Composition?

組合物件 vs 繼承 what’s the pros and cons between Inheritance and Composition ?