Hello and welcome to this to make sure end this lecture.
I'm going to briefly explain what objects are in Ruby Ruby.
Honey object is basically any piece of data.
One example the number seven can be referred to as an object or this string.
Hello can also be referred to as an object.
So all these are examples of what it's seven minus five.
Hello World Book car.
These are all pieces of data and they are referred to as objects.
So Ruby is an object oriented programming language so it treats everything as an object an object also
can have properties.
For example the object.
Hello.
One of the properties you can see there is that the first letter is uppercase.
Now is there is a distinction.
So a feature of that object the object has five letters also is key property which distinguish all which
you can use to describe that object and object can also have an action that is something you do to that
object an object is referred to.
You can look at the intent of the English language an object is a noun and a noun also can have it do
in word which is a verb.
So in this case hello there is the object and we can get the hello to perform an action or to do something.
For example here this is the simple Ruby statement that says put her low dot reverse to what that statement
is saying if that is telling the object to reverse itself so it rules.
Turn the letters upside down.
That's basically what it is saying.
So in the real world you can also have objects like a car.
So a car is an object and it will have properties and the properties can include a make your the car
a model a car lot.
A price.
Also the object will also have an action.
It performs some programming language called Method and the action could include start drive and park.
So that's basically how objects work.
Another illustration from objects could be a book.
So a book is some object and the property is horsewhipping close title or four pages.
Why the actions the book can have could be read.
You can read the book.
You're doing something to it.
You read it.
Another thing you can do to the book is buy it so that it's an action or method seeking look at actions
or methods as verbs because they're doing works and you can look at objects as nouns So that's it for
this brief illustration of optics.
Just remember that everything in Ruby isn't up to any piece of data is referred to as an object.
Thanks for watching.
Bye for now.