Which of the following is true for the given object creation statement?

ICSE Class 10 Computer Applications PYQ · 2025 Paper · Section A

1(ix)1 Mark · 2025 · Section A · 2025 Paper

Which of the following is true for the given object creation statement?

Game cricket = new Game();

Show SolutionHide Solution↓

Game is a class and cricket is an object

Reason — In the statement Game cricket = new Game();, Game is the name of the class, and cricket is the object (or instance) created from that class. The new keyword is used to create a new object of the class. Therefore, Game is the class, and cricket is the object.

← Previous questionNext question →

Browse the free Computer Applications sample bank