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 can cross site request forgery csrf be prevented?
What is overloading and overriding in oop?
Explain me what is the difference between explode() and split() functions?
Does php support inheritance?
Is PHP an open source software?
What types of Data Can Be Used as Array Keys?
Why constructor is not overridden?
How can you upload a file using php?
Tell me what does the initials of php stand for?
What is the use of Mbstring?
What are php parameters?
How do I run a php file?
Which is useful for method overloading?
What is the difference between echo, print and printf()?
What is php addslashes?