English, asked by Chiran7091, 1 year ago

Which of the statements is incorrect?( choose one )the default constructor has the same access as its class.the default constructor invoked the no-arg constructor of the superclass.if a class lacks a no-arg constructor, the compiler always creates a default constructor.the compiler creates a default constructor only when there are no other constructors?

Answers

Answered by sneha40101
2
the default constructor has the same access as its class
Answered by IIKaminaKingII
0

The parameterized constructors are the constructors having a specific number of arguments to be passed. The purpose of a parameterized constructor is to assign user-wanted specific values to the ins.tance variables of different objects. A parameterized constructor is written explicitly by a programmer.

Similar questions