You are in process of writing a class definition for the class Book. It has three data attributes:
book_title, book_author, and book_publisher. The data attributes should be private.
In Python, write an initializer method that will be part of your class definition. The attributes will
be initialized with parameters that are passed to the method from the main program.
Note: You do not need to write the entire class definition, only the initializer method

Respuesta :

Using the knowledge in computational language in python it is possible to write a code that uses  process of writing a class definition for the class Book.

Writting the code in python:

class Book:

   # a constructor for this class.

   # The constructor should accept an argument for each of the fields.

   def __init__(self, book_title, book_author, book_publisher):

       self.book_title = book_title

       self.book_author = book_author

       self.book_publisher = book_publisher

def main():

   b = Book("title1", "author1", "publisher1")

   print(b.book_title)

   print(b.book_author)

   print(b.book_publisher)

main()

See more about python at brainly.com/question/18502436

#SPJ1

Ver imagen lhmarianateixeira