English

A constructor is likely to be defined after the class declaration. - Computer Applications

Advertisements
Advertisements

Question

A constructor is likely to be defined after the class declaration. 

Options

  • True

  • False

MCQ
True or False

Solution

This statement is True.

Explanation:

In Java, a constructor is declared within the class following the declaration. It is part of the class body and is usually defined before or alongside other member functions and variables. 

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. 7. | Page 418
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×