Objects are an encapsulation of variables and functions into a single entity. Objects get their variables and functions from classes. Classes are essentially a template to create your objects. You can think of an object as a single data structure that contains data as well as functions. Functions of objects are called methods.

Assign value to a variable inside "MyClass"