Ajax
ASP
C,C++
C#,.NET
CSS,HTML
Delphi,Kylix
Experience
Flash
Java
JavaScript
PHP
Python
QT
SQL
ShellScript
VB
U :
P :
Register
Lost Password
Other Links
Code Archive
Save Giovanni
PHP Category Code
Real Name
:
Secure Shell
Subject
:
Creating a parent object / Parent Object oluşturma
Description
:
Creating a parent object / Parent obje oluşturuyoruz.
<?php class Product { private $name; private $price; private $photo; private $description; public function Product() {} protected function setName($name) { $this->name = $name; } public function GetName() { return $this->name; } protected function setPrice($price = '0.00') { $this->price = $price; } public function GetPrice() { return $this->price; } protected function setPhoto($photo) { $this->photo = $photo; } public function GetPhoto() { return $this->photo; } protected function setDescription($description) { $this->description = $description; } public function GetDescription() { return $this->description; } } ?>
Rating
:
0.00
(out of 5)
Visitor Voting Booth
:
Excellent
Very Good
Good
Fair
Poor
Copyright © 2006 SharingCode.NET . All rights reserved. Hosted By: SisNetworks