thanassis.com
home
blog
Online Games
Sudoku
Ivory Tower
Web Hangman
Software
Java
Object Oriented
Mobiles / J2ME
Research
C.S. Resources
Galleries
Greece
Music
Photography
Art
Personal
About me
Useful Links
Contact
Site
Downloads
My other sites
Thanassis.gr
Djangopedia
Kilogames
Xoocle
TrainJava
GameAnatomy
Latest News
Interfaces
are special kinds of abstract classes that :
can’t have any implementation,
must be “implemented” by the classes that use them,
used instead of C++’s multiple inheritance,
sometimes they are used to “tag” instances,
often, have an -able ending (Throwable, Cloneable etc).
interface Drawable {
public void draw() ;
}
class Star extends Shape implements Drawable{
Star(int _edges) {
edges_num = _edges;
}
public void draw() { …... }
}
Previous slide
Next slide
Back to first slide
View graphic version
Web
this site
Thanassis Blog News
In the News
Deep impact smashes comet
3 Florida shark attacks in a week
Mad Cow
summit in Scotland
Search the Archives