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 will you do destructive read and non destructive read in data queue.....
what is programmable BIST in today ic design
CPU - abbrevation
what is session state?
preorder of A*(B+C)/D-G
what do you man by firmware
what do you meant by Platform-Independent in Java?
what is difference between kpo and it industry? that is in terms of work, package etc
Colors specified with the notation
Please anyone tell me coding to print prime numbers from 1 to 5000 in c#....
Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the number of smaller cubes on the surface. Extend this to k-dimension.
hai i like to do some certifications in programming or any other......... am doing my IT third year......... pls guide me...... mail me ur suggestions to ranjithmaharaj@gmail.com...