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

Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?

624


How long should a session id be?

636


What do you understand by aggregate dependency?

703


In how many ways we can retrieve table records count?

626


What does clearing cache?

615






i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1588


Explain method to handle error using HttpError in Web API?

675


Explain the asp.net mvc folder conventions? : asp.net mvc

600


How many types of session in ASP.NET

674


What is http session state?

598


Explain server control extensibility with reference to asp.net 2.0 ?

623


What is the difference between session.abandon() vs clear()?

623


What is a 404 redirect?

692


How can we update records in gridview?Is there any appropriate code for it?

1705


What is autopostback true?

692