ab = Audiobook('mp3')
eb = Ebook('mobi')
pb = Paperback('A5')
hb = Hardback() # select 1 of 4, eg. Paperback
order = book.save(pb) # inject book format for save
You may create another formats in future, without change enum.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
All items of enums are objects:
You may create another formats in future, without change enum.