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
Inside a php function, what param needs to be set in order to access a global variable?
Where is session value stored php?
What is the name of scripting engine in php?
Tell us how can we access the data sent through the url with the post method?
What is difference between strstr() and stristr() in PHP?
Why does php need server?
What is the use of "enctype" attribute in a html form?
What is difference between php and wordpress?
What is the difference between overloading and overriding in php?
In php, how to redirect from one page to another page?
Will php die?
What is putenv?
Which php global variable is used for uploading a file?
what are the differences between php and perl
What is the difference between fopen() and fclose()?