Advertisements
Advertisements
प्रश्न
Which of the following is true for the given object creation statement? Game cricket = new Game( );
विकल्प
Game is an object of cricket class
New keyword creates object Game
Game is a class and cricket is an object
Game and cricket are objects
MCQ
Advertisements
उत्तर
Game is a class and cricket is an object
Explanation:
Cricket is an object of the Game class, created using the new operator in the statement Game cricket =new Game();
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Official Board
