Home » Archive

Articles tagged with: programming

PHP »

[19 Aug 2007 | No Comment | 21 views]

< ?php
/* creating a class with two variables and a function */
class abc
{
var $name = "Ram";
var $surname = "Sharma";
function greet()
{
echo “Welcome! $this->name $this->surname”;
}
}
class xyz extends abc
{
var $middlename = “Kumar”;