Answer Posted / hrpynux@gmail.com
A constructor in C++ is a special 'MEMBER FUNCTION' having the same name as that of its class which is used to initialize some valid values to the data members of an object. It is executed automatically whenever an object of a class is created
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of console readkey in c#?
Why main method is static in c#?
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?
Is string nullable in c#?
What is out int in c#?
Why delegates are required?
What does the initial catalog parameter define in the connection string?
Why do we use delegates in c#?
Is datetime a value type in c#?
What is attribute and reflection in c#?
What is 8 bit signed integer?
What is a delegate how is it type safe?
What is the use of generics in c#?
Why do we need singleton class in c#?
How many variables do you need?