Explain constructor.

Answer Posted / kousik

Main Advantage of Cons:
1)Object Initialization
2)Class don't have Private access specifier through use of private constructor avoid inheritance.
3)Types:a)static b)Instance
a)--Default automatically crates and no arguments are not supplied.
b)-Same name of class but we have n no of arguments.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a callback c#?

545


What is windows form in c#?

539


What is the main purpose of linq?

482


what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?

1688


What is msil in c#?

553






Can list contain duplicates c#?

487


What's the difference between System.String and System..StringBuilder in C#?

506


If I want to override a method one of class A and in class b then how do you declare?

748


Name the property of the textbox which cannot be changed at runtime?

526


What does readonly mean in c#?

543


What do you know about Translate Accelerator?

592


What is asynccallback c#?

520


What is a hash table in c#?

515


Is dll a library?

494


Describe two uses of the “using” statement during the operation of c#?

553