Back To PHP Classes and Inheritance Index
ecode=1; $this->ename="abcdef"; $this->esalary=10000; $this->edesignation='accountant'; } function showdata() { print('ecode of employee is ' . $this->ecode); print('
'); print('ename of employee is ' . $this->ename); print('
'); print('salary of employee is ' . $this->esalary); print('
'); print('designation of employee is ' . $this->edesignation); print('
'); } } $ob=new employee; $ob->getdata(); $ob->showdata(); ?>