From 7d7af49ebe0f8a66e6779ee6535c3b9af28c8800 Mon Sep 17 00:00:00 2001 From: Eliseo Ocampos Date: Wed, 9 May 2018 10:43:24 -0400 Subject: [PATCH] Define Book as static Define Book as static so it can be instatiated in createBook() --- code/java/functions/functions-10.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/java/functions/functions-10.java b/code/java/functions/functions-10.java index 189d3f7..2450677 100644 --- a/code/java/functions/functions-10.java +++ b/code/java/functions/functions-10.java @@ -9,7 +9,7 @@ public static Book createBook(){ return new Book("title_01", "author_01"); } -public class Book { +public static class Book { final private String title; final private String author;