[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++

6 / 187

How to declare and define constructor?

Answer:

A constructor is declared and defined as

Class integer
{
int m,n;
public:
integer(void); //constructor declared
……….
………..
};
integer : : integer(void)//constructor defined
{
m=0;
n=0;
}

Asked In :: Societe Generale

Post Your Answer Here:


Rate This: +1 -0      +
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.