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

How long to learn object oriented programming?

0 Answers  


What is the difference between declaration and definition?

20 Answers   IBS,


What is polymorphism oop?

0 Answers  


What do you mean by inline function?

6 Answers  


When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??

13 Answers   HCL, Honeywell,






Prepare me a program for the animation of train

0 Answers  


What does and I oop mean?

0 Answers  


What is oops in simple words?

0 Answers  


Why do we use encapsulation in oops?

0 Answers  


Write an operator overloading program to write S3+=S2.

2 Answers  


Why multiple inheritance is not possible?

0 Answers  


What is oops?what is its use in software engineering?

0 Answers  


Categories