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
Please explain what do the terms “boxing” and “unboxing” mean?
What are multicast delegates?
What is the difference between encrypting a password and applying a hashing?
Explain what is reflection in microsoft .net context?
What is the use com component in .net?
How will you load dynamic assembly? How will create assemblies at run time?
What is the advantage of packaging over xcopy in .net?
Compare client server application with n-tier application
What should you do to store an object in a viewstate?
What is shared and repeatable inheritance?
Explain about the features and elements present in Visual studio.NET IDE?
What is the difference between web application and enterprise application?
How to customize the trace output?
What is difference between .net core and .net standard?
Describe the compilation process for .net code?