what are the ways in which a constructors can be called?
Answers were Sorted based on User's Feedback
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 |
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 |
Where You Can Use Interface in your Project
What is class and object with example?
i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<<k; } //please comment on the output
difference between class and object
10 Answers Chandan, IBM, Magic Soft,
What is abstraction in oop?
What is class and example?
What are functions in oop?
how to swap the variables without using temp and operators
What is function overloading and operator overloading?
What type of loop is a for loop?
What is protected in oop?
How to overload new operator in c++