If you liked this question/asnwer, make sure you
Subscribe to KyaPoocha.com RSS feed!
BOOKMARK THIS : BlinkList | del.icio.us | Digg it | Furl | reddit | StumbleUpon | Yahoo MyWeb |
Related Interview Questions
Why is the constructor of the StackLinkedList class empty? 29.10.08
he constructor of the StackLinkedList class is empty because the constructor of the LinkedList class is called when an instance of the StackLinkedList class is...The LinkedList constructor is a member function that is called when an instance of the LinkedList is removed. 29.10.08
Explanation: The LinkedList constructor is a member function that is called when an instance of the LinkedList is declared False: Constructor is called when an...C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write? 25.04.08
Two. Once you write at least one constructor, C# cancels the freebie constructor, and now you have to write one yourself, even if there’s no implementation in...C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write 16.04.08
Two. Once you write at least one constructor, C# cancels the freebie constructor, and now you have to write one yourself, even if there’s no implementation in...What is conversion constructor? 30.04.07
Constructor with a single argument makes that constructor as conversion ctor and it can be used for type conversion. for example: class Boo { public: Boo(...What is copy constructor? 30.04.07
Constructor which initializes the it's object member variables ( by shallow copying) with another object of the same class. If you don't implement one in your...Are C# constructors the same as C++ constructors? 24.08.06
Very similar, but there are some significant differences. First, C# supports constructor chaining. This means one constructor can call another: class Person...What is constructor chaining and how is it achieved in Java ? 21.08.06
A child object constructor always first needs to construct its parent (which in turn calls its parent constructor.). In Java it is done via an implicit call to...Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use? 20.07.06
(Class constructor method is also known as type constructor or type initializer) Instance constructor is executed when a new instance of type is created and th...What is a default constructor? 09.03.06
A constructor that has no arguments. If you don't code one, the compiler provides one if there are no other constructors. If you are going to instantiate an ar...
1) Implicitly: automatically by complier when an object is created.
2) Calling the constructors explicitly is possible, but it makes the code unverifiable.