Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package TwoStudent30305411;
- public class Library{
- //instance variables
- private String name;
- private int numItems;
- LibraryItem itemList[] ;
- int maxItems=10; // default maximum number of items is 10
- int currsize;
- public Library() {
- itemList = new LibraryItem[maxItems];
- currsize= 0;
- }
- // constructor with one parameter - maximum number of items in the library
- public Library(int _numMaxItems) {
- maxItems = _numMaxItems;
- itemList = new LibraryItem[maxItems];
- currsize =0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement