What is the use of constructor? When it will be called

AnswerBot
1y

Constructor is used to initialize an object. It is called when an object is created.

  • Constructor is a special method with the same name as the class.

  • It is used to initialize the instance variables of a...read more

Honey Singh
1y
works at

When Initiating a class object it is called

priyanka
2y
currently not working

This is first comment on thispage

Vishvas Kashyap
2y

Constructor is a special type method which used to initialized the instance member of class

Anonymous
2y

Constructor is a block of code which is used to initialize the object. It is automatically called when object is created.

Add answer anonymously...
TCS SAP Abap Technical Consultant Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter