PHP Assignment 5 (41)
PHP Assignment 5 (41)
in obseo-oienkd
and Eneapfulaton
1 DiscWs the Co nceþt o Abstracti on
togramming with evam ples
and ehews
AH Abstraction tics co mplea implemn tatien
only
Encapuation. Bincs data anl code into single unt (cas),
obeets compont
Yotrieting clirect acce
bstact cl as vehicle
abs tract Pu b\;c
functon Stat Engine J; -
clas Cat extnd e hicle f
Private engine Statuy -false )
Public function start Enane ) l
ec ho " cat e ngine stauted";
PH P?
do implement inheitance and polymo þhsy in
2: How
Provide example
methoy nc) Jrolpliss uom anothey
" nheitance ' A clas
cla
to dei the Same
Polymovsm Ability & dient cla
l elam Animal
Publi uncton make Sound f
echo uSome qeric Soun)
3
cIas aog extnds Animal { nglc f
Poblic uneton mansoo
echo
3
Animal
clay eat extenelo
Dilrnce
" Dermain: The websits addoen (eg wweexam le coo) :
cM
" Con4nt Management Syst m a my Cont Manaqment Eranwr
Manage Contnt eaiy Via cims to Provid fromeworK 4o
boitd aCMs