//May have numerous methods and properties class BaseEngine { ... Property101 { get; set; } ... Method101 (parameters...) ... } //Inheritance Class SpecialEngine { Override Property101 { get; set; } Override Method101 (parameters...) } //Composition Class SpecialEngine { BaseEngine baseEngine = new BaseEngine(); //Do I need to implement all methods and properties again so that they are callable from special engine? Property0 { return baseEngine.Property0 } Property1 { return baseEngine.Property1 } ... Property100 { return baseEngine.Property0 } Property101 { return special_logic; } Method0 { return baseEngine.Method0 } Method1 { return baseEngine.Method1 } ... Method100 { return baseEngine.Method100 } Method101 { return special_logic; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)