मराठी

The correct statement to create an object named mango of class fruit: - Computer Applications

Advertisements
Advertisements

प्रश्न

The correct statement to create an object named mango of class fruit:

पर्याय

  • Fruit Mango = new fruit();

  • fruit mango = new fruit();

  • Mango fruit = new Mango();

  • fruit mango = new  mango();

MCQ

उत्तर

fruit mango = new fruit();

Explanation:

The class and object names should be the same, as specified in the query.

shaalaa.com
Objects as Instances of a Class
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2023-2024 (February) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×