Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions
Technical Discussion :: C++

91 / 184

What are the two ways to pass values as arguments to the constructor?


Two ways to pass values as arguments to the constructor function when an object is declared.

1. By calling the constructor explicitly.
2. By calling the constructor implicitly.

Eg :
Explicit call:
Integer int1=integer(0,200);

Implicit call:
Integer int1(0,100);

Asked In ::

Post Your Answer Here:

Rate This: +0 -0     

Post Your Reply Here:

Alert me

Report Error

Please Login First Click Here

Most Popular Qs.