Ruby Full Stack Development: Object-Oriented Programming with Ruby


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description
Object-oriented programming (OOP) is a fundamental part of Ruby. This course explores OOP and how classes and objects can be used to develop more sophisticated software. Topics include the following: how to describe OOP; create a class and an object; classify objects by mutability; create and use class methods; use an external class or a module. Other areas covered are inheritance, polymorphism, encapsulation, method overriding, and overloading. You will learn how to investigate classes, and add access controls, raise and handle exceptions. Finally, as a review exercise, you will create and use classes and objects in a Ruby app.

Expected Duration (hours)
0.9

Lesson Objectives

Ruby Full Stack Development: Object-Oriented Programming with Ruby

  • describe object-oriented programming and how it is ingrained into Ruby
  • create a class and create an object from that class in Ruby
  • classify Ruby objects by their mutability and how that affects how they can be used
  • add class methods and instance methods to a class in Ruby
  • use a class or module from an external file in Ruby
  • use inheritance, polymorphism, and encapsulation to extend or modify a class in Ruby
  • use method overriding and method overloading to expand a class in Ruby
  • use inspect and other calls to get information about classes and instances in Ruby
  • add access controls to the methods of a class in Ruby to control which methods can be accessed
  • raise exceptions within Ruby code
  • handle exceptions in Ruby
  • create and use classes and objects in a Ruby app
  • Course Number:
    it_sddruf_03_enus

    Expertise Level
    Beginner