|
@@ -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 {UniversityLibrarian} from "./classes";
|
|
|
|
|
|
+import {ReferenceItem, UniversityLibrarian} from "./classes";
|
|
|
|
|
|
function GetAllBooks(): Book[] {
|
|
function GetAllBooks(): Book[] {
|
|
const books = [
|
|
const books = [
|
|
@@ -160,6 +160,11 @@ let myBook: Book = {
|
|
// let logDamage: DamageLogger = reason => console.log(`Damage reported: ${reason}.`);
|
|
// let logDamage: DamageLogger = reason => console.log(`Damage reported: ${reason}.`);
|
|
// logDamage('Coffee stains');
|
|
// logDamage('Coffee stains');
|
|
|
|
|
|
-let favoriteLibrarian: Librarian = new UniversityLibrarian();
|
|
|
|
-favoriteLibrarian.name = 'Sharon';
|
|
|
|
-favoriteLibrarian.assistCustomer('Lynda');
|
|
|
|
|
|
+// let favoriteLibrarian: Librarian = new UniversityLibrarian();
|
|
|
|
+// favoriteLibrarian.name = 'Sharon';
|
|
|
|
+// favoriteLibrarian.assistCustomer('Lynda');
|
|
|
|
+
|
|
|
|
+let ref: ReferenceItem = new ReferenceItem('Facts and Figures', 2016);
|
|
|
|
+ref.publisher = 'Random Data publisher';
|
|
|
|
+ref.printItem();
|
|
|
|
+console.log(ref.publisher);
|