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 |
What are asp.net authentication providers and iis security?
Explain the purpose of Remoting in .NET?
0 Answers Petranics Solutions,
is c#.net supports multiple inheritance?
What?s typical about a Windows process in regards to memory allocation?
Do you know what is .net standard?
What does cli do?
What's a windows process in .net?
Will my .net app run on 64-bit windows?
What is the benefit of .net core?
DateTime[] dt = new DateTime[10] for(i=0; i<10; i++) { dt[i] = DateTime(2008, 1, i+1) } How many heap object will be created for the above array. Choose the correct answer below. Ans: 1, 10, 11, 12
what is the keyword used for self reference?
Difference between user groups and code groups