code_practice

Hackerrank 30 Days of Code 13 [Abstract Classes]

  • By Khel Kim, 김현호
  • 12 Feb 2019
  • Tags : coding_practice

기초를 갈고 닦기 위한 스탭!
Hackerrank 30 Days of Code
문제
Abstract Classes

class MyBook(Book):
    def __init__(self, title, author, price):
        self.title = title
        self.author = author
        self.price = price

    def display(self):
        print("Title:", self.title)
        print("Author:", self.author)
        print("Price:", self.price)

궁금하신게 있다면 메일 주세요.
k2h7913@daum.net
cafehero123@gmail.com