object-orientated-programming-dvd-player-example

14y, 206d ago [edited]

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

hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

Leave first comment to start a conversation!