DEV Community

Cover image for C# - Inheritance

C# - Inheritance

Grant Riordan on November 17, 2021

Just like humans, code code classes & structs can inherit from others. Like we as humans inherit characteristics and traits from our parents , ...
Collapse
 
grantdotdev profile image
Grant Riordan

Which is what is coming next how we'd convert that to an interface. The post was to illustrate what you can do with inheritance. Illustrating you can inherit properties and methods on a child class without having to copy the same properties and methods onto that sub class.