Explain constructor.
Answers were Sorted based on User's Feedback
Answer / hafiza khan
Constructor is like a method with a same name as of ur
class name ,no return type..
It is used to initialize the memebr variables of the class..
If there is no contructor provided compiler invokes the
default constructor. the Moment there is contructor is
provided to the class it can be any either default or
parameterized the compiler stops invoking it own default
constructor
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / megha
Constructor is a method having same name as that of a
class.It is automatically invoked when an object is
created.It is used to Initialize variables of a class.It has
no return types.
3 types of constructors are:-
1)default constructor
2)parameterised constructor
3)static constructor
| Is This Answer Correct ? | 1 Yes | 0 No |
How do you define the lease of the object?
What is Event - Delegate? clear syntax for writing a event delegate
What is different between Web User Control and Web Custom Control?
What is the managed and unmanaged code in .net?
What is the microsoft .net?
How to customize the trace output?
What is CCW (COM Callable Wrapper) ?
Explain what rare the types of jit and what is econo-jit?
Is string a value type or a reference type?
How do you start, pause, continue or stop a Windows service off the command line?
What is .net and why it is used?
What property do you have to set to tell the grid which page to go to when using the Pager object?