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 abstrac class?where is it use?
What is the main purpose of inheritance law?
what is the difference between a package and a software?
What are the advantanges of modularity
Should you protect the global data in threads? Why or why not?
string is a class or data type in java?
What is polymorphism explain its types?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
what is the size of an empty class
difference between static and non-static variables?
what is the technical or oop name of object?
Explain polymorphism? What r the types of polymorphism? pls give examples?