paint-brush
SOLID Principles in JavaScript: What Does the "L" Stand For?by@serhiirubets
1,779 reads
1,779 reads

SOLID Principles in JavaScript: What Does the "L" Stand For?

by Serhii RubetsMarch 16th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This is the third part of SOLID Principles in JavaScript. If you haven't read the previous two (first part and second part), I highly recommend to read them first and come back here. Liskov Substitution Principle says: If S is a subtype of T, objects of T may be replaced with objects of type S without altering any of the desirable properties of that program. The principle says, that each place, where you use the "Car" class, could be replaced (if needed) with any subclassed of the Car class.
featured image - SOLID Principles in JavaScript: What Does the "L" Stand For?
Serhii Rubets HackerNoon profile picture
Serhii Rubets

Serhii Rubets

@serhiirubets

L O A D I N G
. . . comments & more!

About Author

Serhii Rubets HackerNoon profile picture
Serhii Rubets@serhiirubets

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite