- What’s the implicit name of the parameter that gets passed into the class’ set method?
- How do you inherit from a class in C#?
- Does C# support multiple inheritance?
- When you inherit a protected class-level variable, who is it available to?
- Are private class-level variables inherited?
- Describe the accessibility modifier protected internal.
- 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?
- What’s the top .NET class that everything is derived from?
- How’s method overriding different from overloading? What does the keyword virtual mean in the method definition?
- Can you declare the override method static while the original method is non-static?
- Can you override private virtual methods?
- Can you prevent your class from being inherited and becoming a base class for some other classes?
- Can you allow class to be inherited, but prevent the method from being over-ridden?
- What’s an abstract class?
- When do you absolutely have to declare a class as abstract (as opposed to free-willed educated choice or decision based on UML diagram)?
- What’s an interface class?
- Why can’t you specify the accessibility modifier for methods inside the interface?
- Can you inherit multiple interfaces?
- And if they have conflicting method names?
- What’s the difference between an interface and abstract class? How can you overload a method?
- If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?
- What’s the difference between System.String and System.StringBuilder classes?
- What’s the advantage of using System.Text.StringBuilder over System.String?
- Can you store multiple data types in System.Array?
- What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?
- How can you sort the elements of the array in descending order?
- What’s the .NET datatype that allows the retrieval of data by a unique key?
- What’s class SortedList underneath?
- Will finally block get executed if the exception had not occurred?
- What’s the C# equivalent of C++ catch (…), which was a catch-all statement for any possible exception?
Can we have Non Abstract Method in Abstract Class in C#
-
Yes, you can have non abstract methods in abstract class. Along with non
abstract methods you can also have abstract methods in abstract class.
You can ...
0 comments:
Post a Comment