{"id":1720,"date":"2006-10-22T14:48:51","date_gmt":"2006-10-22T14:48:51","guid":{"rendered":""},"modified":"2026-04-18T23:00:06","modified_gmt":"2026-04-18T23:00:06","slug":"aldri-kaffe-aldri-golf","status":"publish","type":"post","link":"https:\/\/hellem.org\/wblog\/?p=1720","title":{"rendered":"&#8220;Aldri Kaffe, Aldri Golf&#8221;"},"content":{"rendered":"<p>This one is kind&#8217;a geeky, but I have to show it to you. I&#8217;m reading chapter three of my SCJP-book (Sun Certified Java Programmer) where I found this example (which won&#8217;t compile&#8230;it&#8217;s not meant to, it&#8217;s just an example \ud83d\ude42 ) Read through the code, and pay special attention to the comments, I really like the last one <\/p>\n<pre>\r\ninterface Sporty() {\r\n\tvoid beSporty();\r\n}\r\n\r\nclass Ferrari extends Car implements Sporty {\r\n\tpublic void beSporty() {\r\n\t\t\/\/ implements cool sporty method \r\n\t\t\/\/ in a Ferrari-specific way\r\n\t}\r\n}\r\nclass RacingFlats extends AthleticShoe implements Sporty {\r\n\tpublic void beSporty {\r\n\t\t\/\/ implements cool sporty mehtod \r\n\t\t\/\/ in a RacingShoe-specific way\r\n}\r\nclass GolfClub { }\r\nclass TestSportyThings {\r\n\tpublic static void main (String[] args) {\r\n\t\tSporty[] sportyThings = new Sporty[3];\r\n\t\tsportyThings[0] = new Ferrari(); \t\r\n\t\t\/\/ Ok, Ferrari implements Sporty\r\n\t\tsportyThings[1] = new RacingFlats(); \t\r\n\t\t\/\/ Ok, RacingFlats implements Sporty\r\n\t\tsportyThings[2] = new GolfClub();\t\r\n\t\t\/\/ Not ok, GolfClub does not implement Sporty\r\n\t\t\/\/ I don't care what anyone says!!\r\n\t}\r\n}<\/pre>\n<p>As some of you might know, I have a saying that goes like this &#8220;Never coffee, never golf&#8221;. I&#8217;m starting to like this book<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This one is kind&#8217;a geeky, but I have to show it to you. I&#8217;m reading chapter three of my SCJP-book (Sun Certified Java Programmer) where I found this example (which won&#8217;t compile&#8230;it&#8217;s not meant to, it&#8217;s just an example \ud83d\ude42 ) Read through the code, and pay special attention to the comments, I really like [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-1720","post","type-post","status-publish","format-standard","hentry","category-c18"],"_links":{"self":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts\/1720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1720"}],"version-history":[{"count":1,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts\/1720\/revisions"}],"predecessor-version":[{"id":15868,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts\/1720\/revisions\/15868"}],"wp:attachment":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}