.
/ . Java , ... . . OO .
, .
Jesper ( ), OO . , , . , , .
, cannor . , :
class MyInteger extends Integer {
public ... add(...) { }
}
? , .
In short, the penalty is either that OO numeric types (etc.) are slow and use more memory, that equivalent primitive Java types, or with which they are associated with restrictions that limit your ability to use OO type types.
source
share