(beginning student) A method that sets multiple data files

(beginning student) A method that sets multiple data files

(If I'm misusing this website, just tell me and I will go away)
I am just learning Object oriented programming, and this is the assignment
I was just given:
"Design a class named Book that holds a stock number, author, title,
price, and number of pages for a book. Include a method that sets all the
data files and another that prints the values for each data field. Create
the class diagram and write the pseudocode that defines the class."
(keep in mind i'm not writing code for a specific language as I know none)
I created the 5 attributes as requested:



-stockNumber: num
-price: num
-pageCount: num
-author: string
-title: string



Now I need to create a single method that sets all data at once. This is
what is tripping me up.
Is there a common way to handle this in one method? or did my teacher
mistype, and is it better to have multiple set methods? (I don't have
current access to my teacher)