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 |
Why we are use # in begning of programme of c++.
Why a "operator=(...)" when there is a copy ctor?
What is the difference between encapsulation and polymorphism?
Why do we use oop?
Why is abstraction needed?
What is abstraction in oops?
what is function overloading..?
When will a constructor executed?
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3
3 Answers Accenture, Cognizant, IBM,
what is the main difference between c and c++?
386 Answers AZTEC, B.Tech, CMC, College School Exams Tests, HCL, IBM, ITM, Khalsa Institute, Microsoft, Oracle, Sanjeevni Institute, TCS, Tech Mahindra, Wipro, ZeOmega,
OOP'S advantages of inheritance include: