What is the difference between Abstract and Interface?
Answer Posted / ram praswesh kumar
[1]:-> An abstract class contain abstract method and non-
abstract method, but In interface all method are implictly
abstract.
[2]:-> An abstract base class can have private,public and
protected access specifier but all member in interface are
implicitly public.
[3]:- A class can inherit only single abstract class but
can implement more than one interface.
[4]:- An abstract class can implement interface but
interface cannot extend abstract class even concrete class.
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What is cookies c#?
What is xml comments in c#?
What is the use of dll file in c#?
If you want to convert a base type to a derived type, what type of conversion do you use?
write a c# program add two matrix with input number ?
What is the use of readkey in c#?
Why generics are used?
How do I do implement a trace and assert?
Is null == null c#?
What is interface inheritance in c#?
Why do we use parameters in c#?
What is the usage of transponders?
What is string interpolation in c#?
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
Is static class thread safe in c#?