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

Is abstract thinking intelligence?

0 Answers  


what is new operator in c++

1 Answers  


write a c++ code to overload + and - for a stack class such that + provides push and - provides pop operation

1 Answers   College School Exams Tests, HCL, IBM, TCS,


Describe the difference between a Thread and a Process?

11 Answers   Siebel Systems,


What is oops in programming?

0 Answers  






How do you make derived class as an abstract class?

1 Answers   Convergys, TCS,


What is a class?

32 Answers   Infosys, TCS, Thylak,


How to Increment the value of the empid E001 for each and every employee by using the programe?

1 Answers   Accenture,


Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)

4 Answers  


What is deep and shalow copy?

3 Answers   L&T, TCS,


In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance

1 Answers  


Write a program to get the binary tree.

3 Answers   ABC,


Categories