SOLID Liskov Substitution Principle

Posted by Omu on Stack Overflow See other posts from Stack Overflow or by Omu
Published on 2009-10-05T12:40:37Z Indexed on 2010/05/21 23:30 UTC
Read the original article Hit count: 337

Filed under:
|
|

if i have something like

class square : figure {}

class triangle : figure {}

does that mean that i should never ever use the square and triangle classes but only refer to figure ?

like never do like this:

var x = new square();

© Stack Overflow or respective owner

Related posts about solid

Related posts about principles