class2 extends class1
can any1 tell me the use of this?
because I have seen that before in C++ years ago but can't remember, and I am tring to create a php software package that is as OO as possible and that my come in handy
Andrew
Moderator: General Moderators
Code: Select all
class Vehicle
{
function turn($direction)
{}
function accelerate($rate)
{}
}
class FighterJet extends Vehicle
{
function eject()
{}
function shoot()
}