What are the difference between abstract class and interface?
Answer Posted / muinuddin khan
In abstract class aleast one method must be abstract(only
declared not define).we can create object of abstract class.
if we want to use this class then we have to inherit it.
In interface all the method must be abstract(only define).
using interface we can achieve multiple inheritence.
we use interface where one class cannot extend more than
one class(in java).
| Is This Answer Correct ? | 15 Yes | 12 No |
Post New Answer View All Answers
How we get browser details of clients machine?
Does php need html?
What is echo and print in php?
How to parse configuration file in php?
What are magic constants in php?
How to get a total number of rows available in the table?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
Is php strongly typed?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?
Are sessions stateless?
What is the function mysql_pconnect() usefull for?
What is the difference between htmlentities and htmlspecialchars in php?
What is basic php?
which will print out the php call stack?
what is the current salary package in India for a PHP programmer who has 1.5 years experience