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
What is generic collection in c#?
How can I get around scope problems in a try/catch?
What is icomparer in c#?
When should I throw an exception?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
How do you convert byte array to hexadecimal string, and vice versa?
How do you create empty strings in c#?
What is the use of console readline () in c#?
List the differences between method overriding and method overloading?
Can arraylist hold primitive types?
Define an abstract class?
Is predicate a functional interface?
What is dictionary class in c#?
Is an interface a type c#?
What are the benefits of using windows services: