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 |
Explain the main components in .net?
Explain the top .net class that everything is derived from?
What is strong-typing versus weak-typing? Which is preferred?
What is static constructor, when it will be fired?
What is the use com component in .net?
What is Assembly manifest? what all details the assembly manifest will contain.
Define satelite assembly?
Garbage collector thread is what kind of a thread?
Please explain what is the .net framework and how does it work?
What's the problem with .net generics?
What is your observations between vb.net and vc#.net?
How to debug failed assembly binds?