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 |
Is abstract thinking intelligence?
what is new operator in c++
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?
What is oops in programming?
How do you make derived class as an abstract class?
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?
Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)
What is deep and shalow copy?
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
Write a program to get the binary tree.