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
Explain the difference between event and a delegate in c#?
What is a delegate how is it type safe?
What is a private class in c#?
What are the benefits of using generics in c#?
What is the full form of GAC? Explain its uses?
Is array immutable in c#?
Is c# code is unmanaged or managed code?
What is a partial class in c#?
Is c# static or dynamic?
What is interpolation in programming?
How can you use abstract class and interface?
How do I declare inout arguments in c#?
Explain the three test cases in unit testing?
What is difference between var dynamic and object in c#?
What is a multicast c# delegate?