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 |
What is multiple inheritance ?
17 Answers Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,
Get me a number puzzle game-program
Can abstract class have normal methods?
why destructor is not over loaded?
What is polymorphism in oop example?
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.
What is the difference between const int *ptr and int const *ptr???
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
Where You Can Use Interface in your Project
What are the components of marker interface?
Write a program to get the binary tree.
How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript)