PHPのテストです。
現在のチャンネルは 8<?php $tv = new Television(); print('現在のチャンネルは '.$tv->getChannel().'<br>' ); class Television { private $channelNo; public function __construct() { $this->channelNo = 8; } public function getChannel() { return $this->channelNo; } } ?>