Untitled
unknown
plain_text
a year ago
593 B
10
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();
?>Editor is loading...
Leave a Comment