# Intro to Object Orientation - Ruby

## Intro to Object Orientation - Ruby - Review Lecture

### Objectives:

* Define a new class using the `class` keyword.
* Instantiate instances of the class with the class constructor `new`.
* Add instance methods to your class with `def` in the body of the class.
* Set instance variables through writer instance methods.
* Identify the scope of an instance variable.
* Read an instance variable through a reader instance method.
* Use `attr_accessor` to define reader and writer methods for attributes.
* Hook into an object's instantiation with `#initialize`.

### Video

&#x20;\<iframe width="100%" height="720" src="<https://www.youtube.com/embed/UysgBTrJoTc?rel=0&showinfo=0>" frameborder="0" allowfullscreen>\</iframe>

[Direct link to MP4.](http://learn-co-videos.s3.amazonaws.com/ruby/Intro.to.OO.ruby.LV.mp4)

*This video is meant to be a review of the first few topics in Object Orientation in Ruby.*

View [Intro to Object Orientation - Ruby - Review Lecture](https://learn.co/lessons/intro-to-object-orientation-ruby) on Learn.co and start learning to code for free.
