Accessing variables or functions of an object if you have a class object and you want to access its
variables or functions it's really easy to do so.
First open brackets.
As you can see this is all previous code.
So to access class objects variables or functions
by the object name that the class name such as John does name.
But I actually want to print now so it will be John the name we actually used that data to access the
variables or functions.
Now try that unturn cool.
JOHN Well watch out.
Now I will print age ID number on output function.
Nice.
All of them work well.
Thanks for watching
our.