When should we use abtract class and Interface Class?Give
an Example
Answer Posted / pallavi
Use an abstract class when you want to inherit only from the parent
Use an interface when you want to inherit from multiple sources
If the behaviour of base class is default behaviour of all the sub classes the use abstract. If it is not default behaviour for all the classes use interface.
Interface - CAN-DO relationship
abstract class - IS-A relationship
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
To bind columns manually which tags do you need to add within the asp:datagrid ?
In which event of the page viewstate is available?
What is form submit?
Why do you use the app_code folder in asp.net?
How many web config files can be created for an application?
Out of ASP or ASP.NET which one is stateless?
What are cookies in asp.net?
Who is using asp.net?
Are cookies client side or server side?
What is a uri query?
Define managed code and managed data in .net?
How can we access static variable?
What should you do is you want to remove an existing component but would like to make some funtionalities?
Explain the purpose of storyboard.targetproperty.
Explain the difference between sql invalidation and sql notification.