what are the ways in which a constructors can be called?

Answers were Sorted based on User's Feedback



what are the ways in which a constructors can be called?..

Answer / s.verma

A constructor can be called implicitly or explicitly.
When an object of class is created the constructor is
implicitly called.
When we create an object we desired properties, we call the
constructor explicitly.

Is This Answer Correct ?    4 Yes 2 No

what are the ways in which a constructors can be called?..

Answer / king

A constructor can be called implicitly or explicitly.
When an object of class is created the constructor is 
implicitly called.
When we create an object we desired properties, we call the 
constructor explicitly. 

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More OOPS Interview Questions

Where You Can Use Interface in your Project

0 Answers   KPIT,


What is class and object with example?

0 Answers  


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<<k; } //please comment on the output

0 Answers  


difference between class and object

10 Answers   Chandan, IBM, Magic Soft,


What is abstraction in oop?

0 Answers  






What is class and example?

0 Answers  


What are functions in oop?

0 Answers  


how to swap the variables without using temp and operators

1 Answers  


What is function overloading and operator overloading?

4 Answers  


What type of loop is a for loop?

0 Answers  


What is protected in oop?

0 Answers  


How to overload new operator in c++

2 Answers  


Categories