English

Identify the true statement. (a) class as an object factory (b) object is a class factory (c) class and objects are same (d) objects contain class

Advertisements
Advertisements

Question

Identify the true statement.

Options

  • class as an object factory

  • object is a class factory

  • class and objects are same

  • objects contain class

MCQ
Advertisements

Solution

class as an object factory

Explanation:

A class acts as a blueprint or factory that creates objects with predefined data and methods. Objects are instances of a class, so a class creates objects, not the other way around.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 42]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 1 Revision of Class 9 Syllabus
Exercises | Q 1. (iii) | Page 42
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×