Practcle scenario where I can use abstract class and where
I can use Interface
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 |
What is the difference between paramaterized constructor and copy constructor?
What is the difference while using directive vs using statement ?
What method is used to sort the elements of the array in descending order?
What is difference between int and int in c#?
What are the differences between value types and reference types?
How is a loop recorder monitored?
Why to use “using” in c#?
What is a proxy of the server object in .NET Remoting?
Does C# supports multi-dimensional arrays ?
Do void methods have parameters?
What does namespace mean?
What is array class in c#?