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

Can struct have constructor c#?

0 Answers  


Can you allow class to be inherited, but prevent the method from being over-ridden?

1 Answers  


Define an assembly in .net?

0 Answers  


Define c# i/o classes? List the commonly used classes?

0 Answers  


What is data type c#?

0 Answers  






what is webapplication? what is windows application? what is the extension for both . in what purpose we r using webapplication. in which situation we r using windowns application

1 Answers  


In which way you can convert a value-type to a reference-type?

0 Answers   Siebel,


Why are strings immutable c#?

0 Answers  


Can you change the value of a variable while debugging a C# application?

1 Answers   Siebel Systems, Wipro,


Explain the accessibility modifier protected internal?

0 Answers  


What is serialization and deserialization in c# with example?

0 Answers  


What is ac callback?

0 Answers  


Categories