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

Define a manifest in .net?

535


What’s thread.sleep() in threading ?

505


hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?

1059


When should you use generics?

509


Why is it called c sharp?

513






How to declares a two-dimensional array in C#?

565


Explain synchronous and asynchronous operations?

530


What is decimal in c#?

503


Does c# have primitives?

476


What is Web.config?

543


State the top.NET class that everything is derived from?

516


Int map to which .net types?

539


Why References are stored on heap and variables on stack?

501


How does substring work in c#?

476


What is public or shared assemblies ?

548