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
What is the difference between class and namespace?
What is default access modifier for class in c#?
What do you mean by a windows process in regards to memory allocation?
Is c# 8 released?
What is a copy constructor in c#?
What is integer c#?
What is interface inheritance in c#?
is it possible to access a remote web service Without UDDI?
How many types of namespaces available in version4?
What is the symbol used for in c#?
What is indexer c#?
Explain anonymous type in c#?
Which is better interface or abstract class in c#?
What is the default value of string in c#?
How string definitions will prevent escaping on backslashes in C#?