Hello guys, How to Eliminate ifs and elses using polymorphism, so that the code is more compact and easy to understand.
public void update( ){
// is its dead it does nothing
if( dead...
Type: Posts; User: MasterG
Hello guys, How to Eliminate ifs and elses using polymorphism, so that the code is more compact and easy to understand.
public void update( ){
// is its dead it does nothing
if( dead...
Good afternoon staff, I would eliminate the ifs and elses using polymorphisms that solves this lot of ifs, could someone help me? How could I solve this?
// if it is not draggin, see if it...
// if it is not draggin, see if it touches any draggable
if( !isDragging() ){
for( WorldElement t : getWorld().getDraggables() ){
Rectangle...
Good morning guys, I would eliminate the ifs and elses using polymorphisms that solves this lot of ifs, could someone help me? How could I solve this?