Wednesday, 26 November 2014

C# interview questions

Q)What’s the implicit name of the parameter that gets passed into the class’ set method?
Q)How do you inherit from a class in C#?
Q)Does C# support multiple inheritance?

Q)When you inherit a protected class-level variable, who is it available to?
Q)Are private class-level variables inherited?
Q)Describe the accessibility modifier protected internal?

Q)C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?
Q)What’s the top .NET class that everything is derived from?
Q)How’s method overriding different from overloading?
Q)What does the keyword virtual mean in the method definition?
Q)Can you declare the override method static while the original method is non-static?
Q)Can you override private virtual methods?
Q)Can you prevent your class from being inherited and becoming a base class for some other classes?

No comments:

Post a Comment

Popular Posts