Home  • University • Campus

23 ধাপে অবজেক্ট অরিয়েন্টেড প্রোগ্রামিং PHP ধাপ-15

Use public privet protected

<?php
class people {
var $name;
public $height;
protected $social_insurance;
private $pinn_number;
function __construct($people_name) {
$this->name = $people_name;
<i>} </i>
function set_name($new_name) {
$this->name = $new_name;
}
function get_name() {
return $this->name;
}
}
?>

Comments 0


Share

About Author
Jakir Hosan Zilon
Copyright © 2024. Powered by Intellect Software Ltd