Quantcast
Channel: class – Monkey Can Code
Browsing all 3 articles
Browse latest View live

1. PHP Class Introduction

I am going to show the simplest class in PHP. (See the embedded comments for detail. It’s very easy to understand.) This is the php class code (filename is contact_info.php) class contact_info { /*...

View Article



2. PHP Class Inheritance

This simple tutorial is for showing how class inheritance works in PHP and also provide a simple Object Oriented Programming (OOP) concept. To put things simply, class inheritance means a class can be...

View Article

Image may be NSFW.
Clik here to view.

PYTHON: A simple Class Example

Here I write a very simple Python Class. It’s pretty obvious what it does. # this is an example to illustrate how to # use a class in Python   class CAR: #some class variables for this object year =...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images