Tag Archives: software

Inheritance in PHP

Classes can contain subclasses and subclasses can in turn contain superclasses. For example, the class Person could be the superclass of the class PizzaDeliveryGuy.

Posted in PHP | Also tagged , , , , , , , , , , , | Leave a comment

Framerate GameComponent to calculate the frame rate (XNA Framework)

Microsoft XNA can be used to develop computer games. This code snippet contains a so called GameComponent written in C#. The GameComponent is called Framerate and it simply calculates the frame rate of the game at each Update cycle.

Posted in C# | Also tagged , , , , , , , | Leave a comment

Creating a class in PHP

Creating a class in PHP consists of the following code. <?php class Foo { } ?>

Posted in PHP | Also tagged , , , | Leave a comment