object oriented lies

13
/10 @yegor256 1 Объектно- Ориентированное Вранье Егор Бугаенко

Upload: yegor-bugayenko

Post on 16-Jan-2017

1.365 views

Category:

Software


0 download

TRANSCRIPT

/10@yegor256 1

Объектно-Ориентированное

Вранье

Егор Бугаенко

/10@yegor256 2

до…

/10@yegor256 3

/10@yegor256 4

Spring, Hibernate, POJO, JAX-RS, JAXB,

Utils, design patterns, etc.

/10@yegor256 5

object

/10@yegor256 6

f = new File()

/10@yegor256 7

- getters- setters- static methods

/10@yegor256 8

class File { private String path; String getPath() { return this.path; }}

/10@yegor256 9

class File { private String path; void setPath(String p) { this.path = p; }}

/10@yegor256 10

class FileUtils { static String read(File f);}

/10@yegor256 11

class File { private final String path; String content() { // read and return }}

/10@yegor256 12

45+

/10@yegor256 13