Q#: Create a class Book that has the following data members: Name ISBN Author Edition Create a constructor to initialize all data members. Write a method PrintInfo to print information containing the...



Q#:
Create a class

Book

that has the following data members:



  1. Name

  2. ISBN

  3. Author

  4. Edition


Create a constructor to initialize all data members. Write a method

PrintInfo

to print information containing the fields of class.


Write another class called

Library

that must contain a

Main

method. Inside

Main
, make at least 10 instances of

Book,

stored in an array (or list) of type Book. Call the method

printInfo
() for each instance. (Hint: use of
foreach
loop will be beneficial).



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here