Oop Prinyu
Oop Prinyu
Example
Parameterized Constructors
• Most often, you will need a constructor that accepts one or more
parameters. Parameters are added to a constructor in the same way
that they are added to a method, just declare them inside the
parentheses after the constructor's name.