Skip to content

Coding Thoughts

Personal Blog of Alexandros Gougousis

Main Navigation
  • Home
  • About me
  • Favorite Books
  • Contact me

Tag: Liskov Substitution

OOP Inheritance: What, when and why

Posted on November 17, 2017December 4, 2019 By Gougousis Alexandros

Intro Let’s start with some notes that set a baseline for the discussion. We have two types of inheritance. Interfaces and parent classes. An interface is similar to a parent class, but does not provide any implementation. The child class must override all methods. A middle ground is an abstract class where some methods are…

0
Pingraphy powered by WordPress
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok