| |
GeekInterview.com > Interview Questions > Microsoft > ASP.NET 2.0
| Print | |
Question: What is diff. between abstract class and an interface? * What is shadowing? * Diff between Overriding and overloading
|
| September 09, 2005 23:23:39 |
#2 |
| Sujit kumar |
Microsoft Expert Member Since: September 2005 Total Comments: 1 |
RE: What is diff. between abstract class and an interf... |
| An abstract class and Interface both have method only but not have body of method.The difference between Abstract class and An Interface is that if u call Ablstract class then u have to call all method of that particular Abstract class but if u call an Interface then it is not necessary that u call all method of that particular interface.Method OverLoading:-Return type, Parameter type, parameter and body of method number may be different.Method Overriding:- Return type, Parameter type, Parameter Number all must be same . Only body of method can change. |
| |
Back To Question | |