English

Which of the following keywords is used to create an instance of a class? - Computer Applications

Advertisements
Advertisements

Question

Which of the following keywords is used to create an instance of a class? 

Options

  • New

  • Public

  • Class

  • Main

MCQ

Solution

New

Explanation:

To create an instance (or object) of a class in object-oriented programming (e.g., Java, C#, etc.), use the new keyword.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.02: Elementary Concept of Objects and Classes - EXERCISES [Page 16]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.02 Elementary Concept of Objects and Classes
EXERCISES | Q I. 1. | Page 16
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×