[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Technical Discussion :: C++

90 / 187

How to pass values as arguments to the constructor when an object is declared?

Answer:

To pass values as arguments to the constructor function when an object is declared. This done in two ways.
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     
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.