From 642ce1c298acbd637aa3375084eb7a105881daeb Mon Sep 17 00:00:00 2001 From: Sven Boekhoff Date: Tue, 5 Jul 2016 16:32:56 +0200 Subject: [PATCH] Use class instead of bean. A class should only be called 'bean', if: * all properties are private (use getters/setters) * it implements the Serializable interface * it has a public default constructor See: http://stackoverflow.com/questions/3295496/what-is-a-javabean-exactly --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ad01eb89..656cbd77 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ String converted = converter.convert("Java"); System.out.println(converted); // "J" ``` -Let's see how the `::` keyword works for constructors. First we define an example bean with different constructors: +Let's see how the `::` keyword works for constructors. First we define an example class with different constructors: ```java class Person {