oop 第11页
ELI5: Why cast to an interface?-拾光赋

ELI5: Why cast to an interface?

ELI5: Why cast to an interface?,So, I am super new to OOP and Java--specifically, just finishing up my first semester of it. I understand interfaces are akin to contracts, and unde...
kity的头像-拾光赋kity8年前
0475
Avoid getters and setters whenever possible-拾光赋

Avoid getters and setters whenever possible

Avoid getters and setters whenever possible, Noooo!!! Don't click that generate getters and setters option!!! I like the rule: 'Don't use accessors and mutators.' Like any good rul...
kity的头像-拾光赋kity8年前
0409
On the subtleties of OOP-拾光赋

On the subtleties of OOP

On the subtleties of OOP,It is not a overstatement to say that I am an enthusiast when it comes to object orientation. A well crafted object oriented system is a piece of art. Howe...
kity的头像-拾光赋kity8年前
0247
Design Patterns: Strategy Pattern-拾光赋

Design Patterns: Strategy Pattern

Design Patterns: Strategy Pattern,originally posted on my blog at henricodesjava.blog Hello world! I'm currently reading Head First Design Patterns: A Brain-Friendly Guide, and i...
kity的头像-拾光赋kity8年前
03412
How do you choose between an interface and abstract class?-拾光赋

How do you choose between an interface and abstract class?

How do you choose between an interface and abstract class?,I have been asking this question in interviews for some years now. I get to hear a lot of interesting answers from folks....
kity的头像-拾光赋kity8年前
03214
Java is Unsound: The Industry Perspective-拾光赋

Java is Unsound: The Industry Perspective

Java is Unsound: The Industry Perspective,Recently Nada Amin and I discovered that Java and Scala are unsound. We submitted the finding and related discussion to OOPSLA, an academi...
kity的头像-拾光赋kity8年前
02913