English

A constructor is a member methods of a class. - Computer Applications

Advertisements
Advertisements

Question

A constructor is a member methods of a class. 

Options

  • True 

  • False

MCQ
True or False

Solution

This statement is True.

Explanation:

While constructors and methods are conceptually different, they are nonetheless considered members of a class in Java. They belong to the class and are used to set up objects. In a broader sense, constructors might be considered member functions because they are declared within the class and have a part in initializing the class's state.

shaalaa.com
  Is there an error in this question or solution?
Chapter 7: Constructors - EXERCISES [Page 418]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 7 Constructors
EXERCISES | Q III. 4. | Page 418
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×