Is it worth making get and set methods in OOP?
问题 I have seen some some projects in which classes are having get and set methods to manipulate insert data. Let me have an example here : class Student extends dbClass { private $TableID; private $FullName; private $Gender; private $Address; function setTableID($Value) { $this->TableID = $Value; } function getTableID() { return $this->TableID; } function setFullName($Value) { $this->FullName = $Value; } function getFullName() { return $this->FullName; } function setGender($Value) { $this-