= interface = ''Part of'' KeywordsCategory == Purpose == To demonstrate using an interface. == Description == A simple example of a sophisticated abtraction tool. == Example == {{{ #!d interface I { void a(); void b(); } class Impl : I { void a() { } void b() { } } class Kid : Impl { void b() { printf("overriden method\n\0"); } } void main() { Kid k = new Kid(); k.b(); } }}} == Source == Inspired by a newsgroup post ([http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=D&artnum=20956 D:20956]) by Hauke Duden. == More Information == More information is available in the [http://www.digitalmars.com/d/interface.html D Specification].