<?php require_once "includes/layout.php"; // Instanciate $myvar = new layout("new thing"); echo $myvar->get_input() . "<br />"; //------- echo $myvar->firstvar . "<br />"; echo "<hr />"; //---------------------- $othervar = new LayoutTweeks("My other new text"); echo $othervar->get_input() . "<br />"; $othervar->set_input("This is the other other new text"); echo $othervar->get_input() . "<br />"; echo $myvar->get_input() . "<br />"; echo "<hr />"; //----------------------- echo $othervar->get_protected() . "<br />"; ?> <!doctype html> <html> <head> <meta charset="utf-8" /> <title>PHP OOP Concepts Tutorial</title> </head> <body> <hr /> <h2>Toturial text</h2> <pre> Okie, what next?!