Write the syntax and programming example for
default constructor.
Answers
Answered by
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