How to call a constructor?
How to call a constructor can be answered as - You call a constructor when you want to create a new object instance. For example if you have a class Button, then you call the constructor if you want to create a new Button instance. If you don't need a new object, then don't use a constructor. In your example you just…
Answered Oct 13, 2022 · 1.3K Views Read answer →