Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is Constructor

Answer Posted / dipankar gain

constructor is just like a method(a function in C/C++) which
is called before the object of the class is created.
Generally you dont need to give the constructor in the class
definition but if you want to do something like initializing
variables, starting a connection, connect to the database,
then you should use the constructors.
If you dont include the constructor in your class, then the
java compiler puts it for you, its called the default
constructor.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When did c++ add stl?

1224


What is stl in c++ with example?

1157


What is a standard template library (stl)? What are the various types of stl containers?

1165


What is a stl vector?

1251


In what scenario does the Logical file and Physical file being used?

2845


What does stl stand for in basketball?

1152


Explain stl.

1355


Is stl part of c++ standard?

1090


What are the components of stl?

1103


How stl is different from the c++ standard library?

1223


Who wrote stl?

1129


Define stl.

1262


What is the stl, standard template library?

1088


Can we use stl in coding interviews?

1813


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

2181