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 u change company?
how to swap the variables without using temp and operators
Write a program to find out the number of palindromes in a sentence.
What causes polymorphism?
Why polymorphism is used in oops?
What is overloading in oop?
what is the use of mutable key word
What are the advantages of polymorphism?
How would you stop a class from class from being derived or inherited.
What is R T T I ?
can inline function declare in private part of class?
What are the data types in oop?