Practcle scenario where I can use abstract class and where
I can use Interface



Practcle scenario where I can use abstract class and where I can use Interface..

Answer / 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

More C Sharp Interview Questions

Explain the mechanism of VB.NET/C# achieve polymorphism?

0 Answers   Siebel,


Name some properties of thread class.

0 Answers  


How many bytes is a char c#?

0 Answers  


What is a deadlock lock?

0 Answers  


How are Windows programs different from normal C-programs?

0 Answers   Tech Mahindra,






What is the predicate of a sentence?

0 Answers  


Why attributes are used in c#?

0 Answers  


What is var c#?

0 Answers  


How do you create multiple inheritance in C#?

5 Answers   Infosys, KenIndia, Microsoft,


Is list a collection c#?

0 Answers  


Whats an assembly? Describe the importance of assembly?

0 Answers   Siebel,


What is an inheritance ?Give an example in which inheritance is used?

0 Answers   Siebel,


Categories