Solid

321 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
321
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Solid

  1. 1.  Only one public method?? What really means one thing??
  2. 2. public class Cooker { private String name; private String faceId; public void setName(String name) { this.name = name; } public String getName() { return this.name; } public void setFaceId(String faceId) { this.faceId = faceId; } public String getFaceId() { return this.faceId; } public String toString() { .... }}
  3. 3. public class Cooker { private String name; private String faceId; public void setName(String name) { this.name = name; } public String getName() { return this.name; } public void setFaceId(String faceId) { this.faceId = faceId; } public String getFaceId() { return this.faceId; } public String toString() { .... } public String toXml() { .... }}

×