Difference between interface and abstract class?
Answers were Sorted based on User's Feedback
Answer / jenypatel86
There is no difference in the functionality of these two.The
only difference is that a class cannot extend an abstract
class if it already is extending some other class.An interface
on the other hand can be implemented in any situation which
makes them very powerful.Also user defined exceptions can be
defined within an interface itself, which is not the case with
an abstract class.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / m.shanmuga sundaram rjnsoftwar
There are some subtle differences between an abstract class
and an interface
1)
A class can inherit multiple interfaces
A class can inherit only one abstract class
2)
An interface does not contain any access specifier,fields
and code. By default the access specifier is public.
An abstract class can contain any access specifier,fields
and code.
| Is This Answer Correct ? | 4 Yes | 2 No |
what is oops?
Write a program to find whether a given number is prime or not.
Have you used callsymputx? what points need to be kept in mind when using it?
how to write the fallowing code in java? 1 4 9 16 25 36 49 64 81 100
HTML is a subset of
how to display xisheet in list box in c# .net
2.Different data types in C? and its value and range?
what is the difference between uservariables and systemvariables (in Environmental variables)???
How do you initialize a static member of a class with return value of some function?
Diff between IF and where ?
Crystal report proffessional 9 to filter the issue date!!
in network security,how we identified threat?some one say we found threat according to it's signature,but how we get signature or pattern of the virus?