Unable to Understand the main function

Mam i’m Unable to Understand the main function the line in which object of class is created .

whats your doubt in that? we are just creating an object

StacksUsingArrays stack = mainobj.new StacksUsingArrays(1000); mam in this stack object

mam we made object with new keyword what is the need of using this main class object as mainobj.new.

this is just for calling the stack class we have defined for ourselves.nothing else

Okay mam Thank You! Got it

please mark your doubt as resolved :slight_smile: