differences between class inheritance and interface?

Answer Posted / waqas ahmed

In C++, multiple class inheritance was allowed but in C# it
is not. The alternate for multiple inheritance is the use of
interface, it works like a pure abstract class (having
methods prototype only and have to be implemented by the
class that is inheriting the interface)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is postback and autopostback in asp.net?

744


What is the life-span of the items in the viewstate?

709


What is __ requestverificationtoken?

738


What are the two types of web pages?

701


What is the purpose of session management?

702


How does the iis work?

776


If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?

766


Can we create a multiple user simultaneously ?

800


What is a web pool?

781


Explain the steps needed to be performed in order to create an animation in xaml?

771


If we remove web.config or machine.config from the application then, is this application will works?

783


Explain how can we inherit a static member?

713


What is a 401 redirect?

680


What is difference between asp state management and asp.net state management?

798


What is app_code folder in asp net?

747