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
Name the different types of stl containers.
How do you convert stl to steps?
what is template and type convertion
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
What two types of containers does the stl provide?
how to making game in c++ ?
What is a stl vector?
What are the different types of stl containers?
totoo po ba ang manga aliens!
Is there any error below, its a code to delete all entires from a map #include
What is the use of stl?
What is stl stand for?
Who created stl?
sir please send me bpcl previous question papers
What is the stl, standard template library?