what is abstrac class? why it is use?

Answer Posted / satyajit das

abstract class is one where the class parameters are not
defined properly and it is controlled by interface like:

interface gggg{
function ss();
}

interface lll{
function mmm();
}

class boat implements gggg,lll{
public function ss();
public function mmm();
}
$dd = new boat();

It is used due to non presence of multiple inheritance in
PHP.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the array in php?

553


Can you convert php to html?

527


What is the use of "echo" in php?

532


Can we use include ("xyz.php") two times in a php page "index.php"?

571


Tell me what is htaccess?

486






Which will check if a function exists?

590


How do I end a php session?

503


How to include a file code in different files in php?

510


What is use of in_array() function in php?

537


How many columns can be added in a table in mysql?

493


Explain mysql_error().

552


How do you define a constant?

545


What is use of echo in php?

474


What is the method to register a variable into a session?

482


How to assigning a new character in a string?

572