Does C++ support subtyping?

Posted by the_naive on Programmers See other posts from Programmers or by the_naive
Published on 2013-11-10T00:42:22Z Indexed on 2013/11/10 4:11 UTC
Read the original article Hit count: 138

I know it might be a silly question to ask, but I didn't quite get an a absolute clear answer on this matter, so I thought I'd put it here.

Does c++ support the subtyping in the sense that it fulfills Liskov's principle fully? I understand how parametric polymorphism, inclusion polymorphism(subclassing and overriding) work in c++ but I'm not entirely sure or understand if subtyping exists in the context of C++. Could you please explain?

© Programmers or respective owner

Related posts about c++

Related posts about design-patterns