prakash srivastava


{ City } mumbai
< Country > india
* Profession * it
User No # 95214
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 0
Questions / { prakash srivastava }
Questions Answers Category Views Company eMail




Answers / { prakash srivastava }

Question { TCS, 4099 }

Give small demo of writting OOP in PHP-mysql.


Answer

class class_name extends base_class
{
function function_name()
{
// call base class function
$this->base_class_function();
// function body
}
}

call the function from out side whenever you use

//include the php file where you write the class
include_once 'class_file.php';

$variable_name = new class_name()

// set the variable value that you want to use in function
$variable_name->class_Variable = "";

//call the function
$variable_name->function_name();


Is This Answer Correct ?    0 Yes 0 No