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 |
is try block possible without catch block?
How many forms can you create in a Visual Basic 6 Standard EXE project? Is there any limit on that?
How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
what is meaning of MDM in sap?let me know that meaning
How should a programmer decide whether to use a macro or a subroutine to accomplish a given logical function
1 Answers R V College of Engineering, University of Jordan,
i am exeprienced person what is selection process
what is difference between c and C#
Explain three modes in which files can be accessed from python program
what is the filters in biztakk server? where it can use?
When we have more than one main function in a program how does the compiler know the starting point of the program, i mean from which main the execution or compilation of the program begins?
In staad pro, how can we design ROOF SLAB?
Write a program to find duplicate number from array in minimum time complexity.