Technical Interview Questions and Answers :: TCS
- Select All
- SQL
- Java
- C++
- WebMethod
- Informatica
- C
- DBMS
- Operating System
- Soft. Engineering
- Data Structure
- Networking
- Hadoop
- HR Question in TR
111 / 158
When there is more than one constructor in a class with different parameters and with different data types we say that the constructor is overloaded.
112 / 158
The sharing the same name by two or more functions is referred to as function overloading. Similarly when more than one constructor function is defined in a class. We say that the constructor is overloaded. It is also called multiple constructors.
Example :
Complex() { } //constructor with no arg.
Complex (float a) { x=y=a;} //constructor with one arg.
Complex (float real, float imag) //constructor with two arg.
113 / 158
No Discussion on this question yet!
114 / 158
For loop is used when we know how many times
115 / 158
No Discussion on this question yet!
116 / 158
No Discussion on this question yet!
117 / 158
No Discussion on this question yet!
118 / 158
No Discussion on this question yet!
119 / 158
No Discussion on this question yet!
120 / 158
Please Login First :
TCS interview question for freshers, TCS interview questions, TCS interview questions and answers, TCS interview questions and answers for freshers, TCS interview questions for experienced, TCS interview questions for experienced candidates, TCS interview questions for experienced in java, TCS interview questions for freshers, TCS interview questions for java experienced