Set - 9

Question 6 :

What is a delegate?

Answer :

A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers.

Question 7 :

What is the difference between an interface and abstract class?

Answer :

In the interface all methods must be abstract; in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes.

Question 8 :

What is an abstract class?

Answer :

A class that cannot be instantiated. A concept in C++ known as pure virtual method. A class that must be inherited and have the methods over-ridden. Essentially, it is a blueprint for a class without any implementation. 

Question 9 :

Does C# support multiple-inheritance?

Answer :


Question 10 :

Who is a protected class-level variable available to?

Answer :

It is available to any sub-class (a class inheriting this class).