Which is not true about a constructor?
A. Constructor should have same name as class name
B. It doesnot take any return type
C. automatically called
D. constructor is compulsary in all program
Answer:D
Which is not true about a constructor?
A. Constructor should have same name as class name B. It doesnot take any return type C. automatically called D. constructor is compulsary in all program