Object Oriented Programming (OOP) in Ruby: What is it Exactly?

What Is Object Oriented Programming?

Events are something you’ll come across when working with UI /FrontEnd frameworks…

What Are The Four Pillars of OOP?

Encapsulation

A method encapsulating individual pieces of code that deal with the action of starting a car.

Abstraction

Abstract art for an abstract topic | Painter: Wassily Kandinsky
Although this image is for OOP in Python, Classes and Objects operate the same as in Ruby

Inheritance

Image from geeksforgeeks.org

Polymorphism

Polymorphism is essentially creating something that can have multiple uses(implementations)

What is the importance of using OOP?

Summary

A coding and motorcycle enthusiast who’s passionate about personal development and learning. Recent Flatiron School of Software Engineering graduate.

Get the Medium app