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
When did c++ add stl?
What is stl in c++ with example?
What is a standard template library (stl)? What are the various types of stl containers?
What is a stl vector?
In what scenario does the Logical file and Physical file being used?
What does stl stand for in basketball?
Explain stl.
Is stl part of c++ standard?
What are the components of stl?
How stl is different from the c++ standard library?
Who wrote stl?
Define stl.
What is the stl, standard template library?
Can we use stl in coding interviews?
Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.