O'Reilly logo

Ruby Programming for the Absolute Beginner by Jerry Lee Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Object-Oriented Programming

In Chapter 3, you learned a number of elementary object-oriented programming concepts, including how to define new classes and instantiate objects based on those classes. You learned how to define properties and methods within those classes and to interact with these properties and methods once you instantiated objects based on these classes. In subsequent chapters you learned how to work with an assortment of predefined Ruby classes, include the string, numeric, array, and hash classes. In this chapter, you will learn more object-oriented programming concepts, including how to initialize objects upon instantiation, restrict access to object variables using different variable scopes, overwrite class methods, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required