Practcle scenario where I can use abstract class and where
I can use Interface
Answer Posted / kishore anumala
Well lets think we have went to a car showroom to purchse a
car the vendor expalins the details of car.
First he explains the minimum details of car like
Its cost, Speed, Milage, etc..
Here we make use of Interface(Just implementing the
existing members).
And if you are interested in purchasing car
The vendor gives you lot more details of the car like
Model Name, Chassis model, Type of finishing etc...
Here we make use of Abstract class(Overriding the existing
class members for presenting more information)
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is the C# syntax to catch any possible exception?
Is it possible to inline assembly or il in c# code?
Is and as keyword in c# net?
What are the advantages of using partial classes?
What is array collection?
What are the differences between a class and a struct?
How many kinds of elements an array can have?
What is the difference between Static, Const and read only?
What does void mean in c#?
What is a console?
Why do we overload constructors?
What is parallel foreach c#?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
How do you prevent a method from being overridden in c#?
Why we use extension methods in c#?