Untitled

 avatar
unknown
plain_text
20 days ago
593 B
3
Indexable
<?php
class Klient{
    public $emri;
    public $mbiemri;
    public $email;
    public $telefon;
    public function __construct($a,$b,$c,$d)
    {
        $this->emri=$a;
        $this->mbiemri=$b;
        $this->email=$c;
        $this->telefon=$d;
    }
    public function shfaqklient(){
        echo "Emri i klientit eshte ".$this->emri;
    }
    public function shfaqtelefon(){
        echo "Numri i telefon eshte ".$this->telefon;
    }
    
}
$klienti1 = new Klient("Arben ","Hoxha ","arbenhoxha@gmail.com ","+355691234567 ");
$klienti1->shfaqKlient();
$klienti1->shfaqtelefon();
?>
Leave a Comment