30.5k views
0 votes
The method main of a class is called when you instantiate an object of that class like this: Box myBox = new Box();

A. TrueB. False

User Niko Jojo
by
3.6k points

1 Answer

3 votes

Answer:

The answer is "Option A"

Step-by-step explanation:

In the OOPs programming language, the class and object concept is used, in which class is a collection of data members, and member function and object is known as real-time entity. In the class when the main method is created, so inside this method class object is created that's why the answer to this question is true.

User Manuel Ceron
by
4.0k points