1. How can I avoid code duplication with many small classes? stackoverflow.comI have different classes called
|
2. What type should I cast to? stackoverflow.comI have a form class with a method:
The IText interface is something implemented by a subclass of JTextField called MyTextField .
For reasons beyond my control, I cannot get the control from ... |
3. Why casting direction is big to small in primitive types and small to big with objects? stackoverflow.comIn Java we need casting when converting double(big in memory size) to Integer (smaller in memory size)
But in case of objects if parent class is "Mammal"(small ... |
4. OO-design with casting / structure issue stackoverflow.comI have a class which does operations on the database, but I want to keep it as general and abstract as possible, thus by Object return types. Here's an example method of ... |