本文整理汇总了PHP中Classes::show_class方法的典型用法代码示例。如果您正苦于以下问题:PHP Classes::show_class方法的具体用法?PHP Classes::show_class怎么用?PHP Classes::show_class使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Classes
的用法示例。
在下文中一共展示了Classes::show_class方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Classes
}
$class1 = new Classes('First Class');
$class2 = new Classes('Second Class');
$subj1 = new Subject('Maths', 160, 8);
$subj2 = new Subject('Informatics', 100, 6);
$subj3 = new Subject('English', 200, 10);
$subj4 = new Subject('Literature', 120, 5);
$teacher1 = new Teacher('Victory Fox', '465-254-421', 'Algebra');
$teacher2 = new Teacher('George Nickelson', '223-548-212', 'English Literature and freestyle writing');
$teacher3 = new Teacher('Peter Williams', '223-548-897', 'Software Engineering');
$student1 = new Student('Anna Rosewood', '558-788-458', 1, 6.0);
$student2 = new Student('Carrie Clark', '589-788-454', 4, 4.5);
$student3 = new Student('Michael Fllinstone', '689-725-231', 15, 5.45);
$student4 = new Student('Ron Pillsbury', '254-255-210', 22, 5.75);
$class1->add_teachers($teacher1);
$class1->add_students($student1);
$class1->add_students($student2);
$class1->add_students($student3);
$class1->add_students($student4);
$class2->add_teachers($teacher2);
$class2->add_teachers($teacher3);
$class1->show_class();
$class2->show_class();
$teacher1->add_subj($subj1);
$teacher2->add_subj($subj2);
$teacher2->add_subj($subj3);
$teacher1->show_dets();
$teacher2->show_dets();
$student1->show_dets();
$student1->homework();
$student2->study();