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
