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
When should we use sealed class in c#?
What is the default boolean value in c#?
What is void in c#?
What is different between Implicit conversion and Explicit conversion in C#?
What types of object can I throw as exceptions?
What is executereader in c#?
What is the use of tryparse in c#?
What are some of the commonly used commands in sqlcommand?
Define satellite Assembly in .NET?
Why do we use partial class in c#?
What is the do while loop code?
What is oledb in c#?
Does c# have a 'throws' clause?
What is parsing?
Are c# references the same as c++ references?