Computer Science, asked by vinuvarsha040201, 9 months ago

Write the syntax and programming example for
default constructor.​

Answers

Answered by im3783141
0

Answer:

When an object value is declared with no argument list (e.g.: MyClass x; ) or allocated dynamically with no argument list (e.g.: new MyClass; or new MyClass(); ), the default constructor of MyClass is used to initialize the object.

Similar questions