<?php
namespace Main\DisplayStuff;

require_once "DisplayList.php";

// DisplayList and DisplayTable are both part of the \Main\DisplayStuff namespace
// so new "use" statement is required.

class DisplayTable extends DisplayList
{
	// Attributes
	
	// Constructor
	public function __construct($data)
	{
		parent::__construct($data);
	}
	
	// Methods for properties
	// Getters and Setters
	// NONE
	
	// Methods
	
	// Override the abstract method
	public function Show()
	{
		echo "<table border=1>";	
		foreach($this->Data as $item)
		{
			echo "<tr><td>".htmlentities($item)."</td></tr>";
		}
		echo "</table>";	
	}
}
?>