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


Please Help Members By Posting Answers For Below Questions

Explain the difference between event and a delegate in c#?

536


What is a delegate how is it type safe?

473


What is a private class in c#?

499


What are the benefits of using generics in c#?

489


What is the full form of GAC? Explain its uses?

582






Is array immutable in c#?

488


Is c# code is unmanaged or managed code?

523


What is a partial class in c#?

492


Is c# static or dynamic?

510


What is interpolation in programming?

492


How can you use abstract class and interface?

546


How do I declare inout arguments in c#?

542


Explain the three test cases in unit testing?

598


What is difference between var dynamic and object in c#?

520


What is a multicast c# delegate?

522