When should one use the Abstract, Implements, or extends keywords?

Posted by kdavis8 on Game Development See other posts from Game Development or by kdavis8
Published on 2012-04-06T17:36:44Z Indexed on 2012/04/06 17:43 UTC
Read the original article Hit count: 287

I'm just now moving from a beginner to intermediate level android programmer in the java language. i can successfully write a game framework of classes that work together to accomplish a task beyond basic things, like hello world. but i'm having issues with some pretty basic OOP concepts; When should i derive from an abstract class? When is it more efficient to use an Interface instead of simply sub classing a parent?

Basically, between extends, implements, and the abstract keywords, which keywords should be used instead of the others? i'm not looking for a basic definition, as i know them. i need to no when and why i should apply them to my code? what advantages does one have over the other? which is best for game development?

© Game Development or respective owner

Related posts about java

Related posts about android