Answer Posted / 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 |
Post New Answer View All Answers
How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?
When displaying fonts, what is the difference between pixels, points and ems?
What is 'Common Type System' (CTS) in .NET?
Explain the difference between the stack and the heap?
what is dotnet architecture? can anyone explain that.
What's wrong with a line like this? Datetime.parse(mystring);
Can "this" be used within a static method?
Differences between datagrid, datalist and repeater in .net?
As you know read-only variables and constants have many similarities, but what is at least one way that they differ?
What is the difference between response.redirect & server.transfer?
I want to serialize instances of my class. Should I use xmlserializer, soapformatter or binaryformatter?
Tell me what is serialization?
Explain me difference between public and static modifiers?
What is "common language runtime" (clr) in .net?
Do you know what's the difference between .net and laravel?