Login or register    

Object Orientated Programming DVD Player Example

class Dvd( object ):
    """DVD model"""
    def __init__():
        """DVD contructor"""
        pass

    def play():
        """Play dvd"""
        pass

    def ff():
        """Fast Forward"""
        pass

    def rw():
        """Rewind"""
        pass

    def settime( hours = None, minutes = None, seconds = None ):
        """Set time"""
        pass

Comments

Leave a comment

Please login or register to leave a comment!