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
Explain Creational design pattern in .NET?
How do you create threading in.net?
Explain what is immutability, what is it for and how is it codified?
What is .net core used for?
What is delegation in .net?
How many types of generations are there in a garbage collector?
What is the use of system.diagnostics.process class in .net?
What's the .net collection class that allows an element to be accessed using a unique key?
Explain how to manage pagination in a page using .net?
Tell us what is json data, and what is one way that .net developers can work with json?
What is singlecall activation mode used for in .net?
What is the difference between override and overload in a method?
Difference between class and interface in .net?
Explain what do the terms “boxing” and “unboxing” mean?
When a Static Constructor called in .NET?