How to Write Better Object Oriented Code — SOLID Principles

Using “Uncle Bob’s” five object oriented design principles to write better code.

Photo by Clément H on Unsplash

Single Responsibility Principle

Open Closed Principle

Liskov Substitution Principle

Interface Segregation Principle

Dependency Inversion Principle

interface DBConnectionInterface {
public function connect();
}

Conclusion

Passionate about building cool shit. First-year undergrad student studying EECS and Business @ UC Berkeley MET Software developer at Carline.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store