Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

private class member in php

Mon Oct 27, 2008 12:00 am

Code:

<?php
   
class Staff
   
{
      
private $name;
      
private $title;
      
protected $wage;
      
protected function clockIn() {
         echo
"Member $this->name clocked in at ".date("h:i:s");
      }
   
      
protected function clockOut() {
         echo
"Member $this->name clocked out at ".date("h:i:s");
      }
   }
?>




Post a reply
  Related Posts  to : private class member in php
 inner class that is a member of an outer class?     -  
 New Member Introduction     -  
 New Member introduction     -  
 Calling a Private Method in jsp     -  
 Laserwords Private Limited Chennai : COPY EDITOR     -  
 Define class helper class to check the method existance     -  
 java abstract class,concrete class and interface     -  
 relationship between the Canvas class and the Graphics class     -  
 Define class inside another class C++     -  
 load class to applet- load frame class to applet     -  

Topic Tags

PHP OOP