Skip to content

Commit 642ce1c

Browse files
committed
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
1 parent 6dd0e09 commit 642ce1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ String converted = converter.convert("Java");
167167
System.out.println(converted); // "J"
168168
```
169169

170-
Let's see how the `::` keyword works for constructors. First we define an example bean with different constructors:
170+
Let's see how the `::` keyword works for constructors. First we define an example class with different constructors:
171171

172172
```java
173173
class Person {

0 commit comments

Comments
 (0)