|
@@ -1,6 +1,6 @@
|
|
import {Book, DamageLogger, Librarian} from './interfaces';
|
|
import {Book, DamageLogger, Librarian} from './interfaces';
|
|
import {Category} from "./enums";
|
|
import {Category} from "./enums";
|
|
-import {ReferenceItem, UniversityLibrarian} from "./classes";
|
|
|
|
|
|
+import {Encyclopedia, ReferenceItem, UniversityLibrarian} from "./classes";
|
|
|
|
|
|
function GetAllBooks(): Book[] {
|
|
function GetAllBooks(): Book[] {
|
|
const books = [
|
|
const books = [
|
|
@@ -164,7 +164,10 @@ let myBook: Book = {
|
|
// favoriteLibrarian.name = 'Sharon';
|
|
// favoriteLibrarian.name = 'Sharon';
|
|
// favoriteLibrarian.assistCustomer('Lynda');
|
|
// favoriteLibrarian.assistCustomer('Lynda');
|
|
|
|
|
|
-let ref: ReferenceItem = new ReferenceItem('Facts and Figures', 2016);
|
|
|
|
-ref.publisher = 'Random Data publisher';
|
|
|
|
-ref.printItem();
|
|
|
|
-console.log(ref.publisher);
|
|
|
|
|
|
+// let ref: ReferenceItem = new ReferenceItem('Facts and Figures', 2016);
|
|
|
|
+// ref.publisher = 'Random Data publisher';
|
|
|
|
+// ref.printItem();
|
|
|
|
+// console.log(ref.publisher);
|
|
|
|
+
|
|
|
|
+let refBook = new Encyclopedia('WorldPedia', 1900, 10);
|
|
|
|
+refBook.printItem();
|