topical media & game development

talk show tell print

professional-php-02-class.Musician.php / php



  class Musician {
  
    private last;
    private first;
    private bandName;
    private type;
  
    function __construct(last, first, musicianType) {
           this->last = last;
           this->first = first;
           this->mtype = musicianType;
    }
    
    public function getName() {
           echo this->first . this->last;
    }
    
    public function getBand() {
           echo this->bandName;
    }      
    
    public function getMusicanType() {
           echo this->type;
    }      
  
    public function setName(first, last) {
           this->first = first;
           this->last = last;
    }
    
    public function setBand(bandName) {
           this->bandName = bandName;
    }
    
    public function setMusicanType(musicianType) {
           this->type = musicianType;
    }      
  }
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.