Essential OOP concepts in Ruby are crucial for building robust, scalable, and maintainable software systems. This course revisits key OOP principles, such as encapsulation, inheritance, polymorphism, and abstraction, and demonstrates their practical application in Ruby programming.
Overview
Syllabus
- Unit 1: Classes and Objects in Ruby
- Add a Data Member to the Musician Class in Ruby
- Enhancing the Album Class
- Implementing a Person Class in Ruby
- Unit 2: Introduction to Encapsulation in Ruby
- Adding and Validating a Price Field in the Gadget Class
- Encapsulation with Getter and Setter Methods in Ruby
- Encapsulation with attr_reader in Ruby
- Unit 3: Inheritance in Ruby
- Inheritance and University Information in Ruby
- Modify Employee Class with Employee ID Attribute in Ruby
- Adding a GraduateStudent Class in Ruby
- Creating and Displaying Inherited Vehicle Attributes
- Unit 4: Introduction to Polymorphism in Ruby
- Adding an Introduction Method to Class Hierarchy in Ruby
- Polymorphism with Derived Classes in Ruby
- Practicing Polymorphism with Vehicles in Ruby
- Polymorphism with Ruby Classes