Which among the following two is best and why? Abstract
Class and Interface. What is the major difference in between
those two except the discrete methods and methods with
function definition.
Answer Posted / anitha
a)for Future, we can provide extra services in Abstract
Class ,these futures can able to access all of its
Clients. And also it supports reusability.
suppose the implementer need not provide implementation
for all the methods.
Where as in Interface we don’t have this future(reusability
and extra servicess).
each implementer need to provide
implementation for all the methods and
also we cont provide extra services in
future.The interface should be constant.
b)Interface can support multiple inheritance where as
abstract class does not.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Write the .net syntax for 'for loop'?
What is connection pooling and how do you make your application use it?
What is new in .net core?
What’s different between process and application in .net?
How will you do redo and undo in textbox control?
What is Ajax? How it is related to your project?
What is the difference between override and overload in a method?
What are the similarities and difference between class and structure in .net?
Is atl redundant in the .net world?
Tell us the difference between managed and unmanaged code?
Explain About GDI object ?
What is static constructor, when it will be fired?
Do you know what is the difference between an abstract class and an interface?
Explain .NET architecture?
Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column