What?s the difference between an interface and abstract
class?
Answers were Sorted based on User's Feedback
Answer / sunitha
Interface - All Methods in the Interface are abstract
Methods.So the Access Modifier is public by default which
helps the Class ABC Implementing the Interface to define
the code for the methods
Abstract - > Protected Methods can be defined & implemented
in Abstract Class. This class does some implementation of
its own & leaves the remaining implementation to the
Derived Class
1.Multiple Inheritance is possible through Interface only.
2.If we add any new method in the interface, then all the
derived class has to be altered to include the
implementation of the method.
3.Interface is on the Top Level
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / guest
In the interface all methods must be abstract; in the
abstract class some methods can be concrete. In the
interface no accessibility modifiers are allowed, which is
ok in abstract classes.
Is This Answer Correct ? | 3 Yes | 3 No |
Explain constructor.
What is asp net in c#?
What is the use of constructor in c# with example?
Can an interface inherit an interface
what is the main differnce between const,readonly and static
3 Answers Beehive Systems, CDAC,
What are the benefits of using generics?
What is a console operator?
Is c# or c++ better for games?
Is array reference type / value type?
What are virtual classes in c#?
What is the implicit name of the parameter that gets passed into the class set method?
What is the difference between hashtable and dictionary?