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 |
Explain the mechanism of VB.NET/C# achieve polymorphism?
Name some properties of thread class.
How many bytes is a char c#?
What is a deadlock lock?
How are Windows programs different from normal C-programs?
What is the predicate of a sentence?
Why attributes are used in c#?
What is var c#?
How do you create multiple inheritance in C#?
5 Answers Infosys, KenIndia, Microsoft,
Is list a collection c#?
Whats an assembly? Describe the importance of assembly?
What is an inheritance ?Give an example in which inheritance is used?