PHP OOP Practice

Without Constructors:

class_lib.php

index.php

With constructors:

class_lib.php

index.php

With modifiers:

class_lib.php

index.php

With Inheritance:
class_lib.php

index.php

Overriding methods: