English

It can be called an object factory:

Advertisements
Advertisements

Question

It can be called an object factory:

Options

  • Method

  • Constructor

  • Data

  • Class

MCQ
Advertisements

Solution

Class

Explanation:

 A class is called an object factory because it is used to create objects. It acts as a blueprint or template that defines the data (attributes) and methods (functions) that objects will have.

shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 64]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 2 Class as the Basis of all Computation
Exercises | Q 1. (ii) | Page 64
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×