Computer Science, asked by ananyarai122, 5 months ago

examples of parameterized constructor​

Answers

Answered by sahilkumarray58799
1

Answer:

For example, when we create the object like this MyClass obj = new MyClass(123, "Hi"); then the new keyword invokes the Parameterized constructor with int and string parameters (MyClass(int, String)) after object creation.

Explanation:

If you are satisfied with my answer, then give me 5 stars and follow me

Similar questions