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
Which property of the textbox cannot be changed at runtime?
How does bubble sort work?
What is form feed and carriage return?
Explain attributes in c#?
What is the size of a decimal?
How to transpose multi-dimensional array?
Explain the difference between boxing and unboxing.
What is namespace in oops?
What is difference between a constant and read-only in C#?
What is predicate builder?
What is a method signature in c#?
Can a struct inherit from an interface in c#?
Are private members inherited in c#?
What is mvc firstordefault?
What is the difference between a function and a method?