Web: https://dev.to/0x2fa/100-days-of-learning-ruby-day-4-3h3h

Jan. 10, 2022, 8:25 p.m. | 0x-2FA

DEV Community dev.to




OOP in Ruby (Part II)


Last time we learnt what is Object Oriented Programming and we started to learn how it is implemented in Ruby, today we will continue learning about OOP in Ruby.



  • What is attr_accessor, attr_reader and attr_writer?

  • Inheritance in Ruby





Setup for Today


Create a new folder called Day_4, then create a new file with the name oop2.rb and finally open it up in a text editor of your choice.



cd 100_days_of_ruby/
mkdir Day_4 && cd Day_4/ …

100 100daysofcode beginners day learning ruby

Head of Information Security

@ Canny | Remote

Information Technology Specialist (INFOSEC)

@ U.S. Securities & Exchange Commission | Washington, D.C.

Information Security Manager - $90K-$180K - MANAG002176

@ Sound Transit | Seattle, WA

Sr. Software Security Architect

@ SAS | Remote

Senior Incident Responder

@ CipherTechs, Inc. | Remote

Data Security DevOps Engineer Senior/Intermediate

@ University of Michigan - ITS | Ann Arbor, MI