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 |
how many languages .net is supporting now?
Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. for 3 marks mainframe
Java is called as pure objerct oriented programming language, where as c++ is not completely object oriented.can any explain the detailed differenec between these two
What r the attributes using in Win Runner?
0 Answers Tavant Technologies,
How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
How do you pass variables forwrd to future CECI sessions
HOW TO BREAK THE FIREWALL?
Diff between %let and Call symput?
what is the draw back of Power builder
What are the compilers of JAVA and .NET Programming languages?
what are importance in problem tracking
What is abstract Method i want the exact definition and is there any possibility to declare class as abstract without any abstract methods in that class?If it is possible then tell me why and how?