#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-

# Función definida fuera de la clase
def funcion1(self, x, y):
    return min(x, x+y)

class HelloWord:
    f = funcion1
    def hello(self):
        return 'hola, mundo'
    h = hello
# f, h y hello son atributos de la clase HelloWord que hacen referencia a objetos función.

x = HelloWord()
print x.f(5, 10)
print x.h()
