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
What is difference between required and require_once in php?
What is regex in html?
Is PHP an open source software?
How to get useful error messages in php?
Which is the best php framework for a beginner?
What are the two types of variables?
Where sessions stored in PHP?
What does it mean when it says the csrf token is invalid?
What is cookie and session in php?
What is warning – “cannot modify header information – headers already sent”?
Tell me how can we get the error when there is a problem to upload a file?
What are the encryption techniques in php?
What is a controller in programming?
Write a program to find a string is palindrome or not?
What is the role of php.ini file?