English

What is a Parameterized Constructor?

Advertisements

Question

What is a parameterized constructor?

Short/Brief Note
Advertisements

Solution

Parameterized Constructor: 

It is a constructor that accepts parameters. When an object is declared using a parameterized constructor, the initial values have to be passed as arguments to the constructor.

shaalaa.com
  Is there an error in this question or solution?
2015-2016 (March)

APPEARS IN

Advertisements
Share
Notifications



      Forgot password?
Use app×