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
Which is correct about mysqli and pdo?
What are the differences between php3 and php4 and php5? What is the current stable version of php? What advance thing in php7?
Where is my php ini file?
How to find current date and time?
What are the functions to be used to get the image's properties (size, width and height)?
Is jquery better than javascript?
Explain which cryptographic extension provide generation and verification of digital signatures?
What is the default time in seconds for which session data is considered valid?
What is the use of php and mysql?
Is apache needed for php?
Does apache use php?
What is difference between md5 and SHA256?
Is php a float?
What are traits?
What are the advantages of stored procedures in php?