Feeds:
Posts
Comments

Archive for April 5th, 2013

What is method?
In programming language, method is something that you do to an object.

For example, the object is ‘door‘ and you want to apply an action ‘open‘.

In python you can write as: door.open().

door = object

open = method

( ) = argument

Argument is the place for parameters that you apply to the method.

For example, you want to open your door half only or full open then changing the color painting to blue or red.

The syntax will be:

door.open(‘half)

door.open(‘full‘)

door.color(‘blue‘)

door.color(‘red‘)
In python, you can use built-in methods or create it manually.

Let me explain more details.
(more…)

Read Full Post »

Follow

Get every new post delivered to your Inbox.

Join 71 other followers