Create An Object From A Class

Now, that you have a class, it is easy to create an instance of the class by using the keyword “new.”

EXAMPLE:

MyBox box1 = new MyBox();

NOTES: