What is constructor? Without creating any object it will call or not?

AnswerBot
8mo

A constructor is a special method in a class that is automatically called when an object of that class is created.

  • A constructor typically initializes the object's properties or performs any necessary ...read more

Anonymous
1y

Constructor is used to initialize the class propert.contsructor is automatically cal without creating an instance of object.constructor have no return type.

GAURAV MISHRA
1y

Constructor is special method (member method ) which automatically call when object is created. without calling object constructor not call.

Add answer anonymously...
TCS Web Developer 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

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