| Other C Sharp Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Can you prevent your class from being inherited and becoming
a base class for some other classes? | | 4 |
| Does C# support multiple inheritance? | | 3 |
| What is architecture of your poroject? how i c an say? | Phoenix-Technologies | 1 |
| What?s the implicit name of the parameter that gets passed
into the class? set method? | Visual-Soft | 2 |
| About Virtual functions and their use ? | MMTS | 8 |
| What is the difference between readonly and constant in c# | Fulcrum-Logic | 2 |
| When you inherit a protected class-level variable, who is it
available to? | | 2 |
| Suppose in a scenario if we want to display information only
until 4.00 p.m and after that
means after 4.00 p.m if any one tries to access the
information it should give error mesage.
Then how will you write a delegate for this ? Give coding.
| HP | 1 |
| How u call destructor and dispose methode in c#.NET | | 1 |
| Can you allow class to be inherited, but prevent the method
from being over-ridden? | | 3 |
| What is the difference between directcast and ctype? | Wipro | 2 |
| write the Syntax for Function or Method Overriding? | HCL | 4 |
| What is overloading and how can this be done ? | MMTS | 3 |
| What is covariance and contravariance? Did Delegate and
method overriding support these? | TCS | 1 |
| How can you overload a method? | | 2 |
| OOPs concept ? | MMTS | 1 |
| Trace the O/p for a program on inheritance and Polymorphism.
3 classes A,B,C
A with two methods
public virtual SomeMethodA
public virtual SomemoreMethodA
B:A
overide virtual SomeMethodA
C:B
new Method SomeMethodA
override SomeMoreMethodA
main method
{
b new instance of B
b.SomeMethodA
b.SomeMoreMethodA
b1 new instance of C
b1.SomeMethodA
b1.SomeMoreMethodA
} | | 1 |
| How to throw an caught exception from cath block? | TCS | 3 |
| When static constructor is invoked? | TCS | 6 |
| How does a function pointer returns a function pointer? | Wipro | 3 |
| |
| For more C Sharp Interview Questions Click Here |