{"id":625,"date":"2012-08-19T17:44:36","date_gmt":"2012-08-19T17:44:36","guid":{"rendered":"http:\/\/codeatelier.wordpress.com\/?p=205"},"modified":"2012-08-19T17:44:36","modified_gmt":"2012-08-19T17:44:36","slug":"how-to-use-interface-java","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/how-to-use-interface-java\/","title":{"rendered":"How to use interface Java"},"content":{"rendered":"<p><b>How to use interface Java<\/b><\/p>\n<pre>\npublic class Main \n{\n   public static void main(String args[])\n   {\n      BallAttributes objBallAttributes = new BallAttributes();\n      RubberBall     objRubberBall     = new BallAttributes();\n\t\t\n      objBallAttributes.bouncable();\n      objRubberBall.moveable();\n   }\n}\n\nclass BallAttributes implements RubberBall, Movable \n{\n    public void bouncable()\n    {\n      System.out.println(\"I am Bouncing\");\n    }\t\n    \n    public void moveable()\n    {\n      System.out.println(\"I am Moving\");\n    }\t\n}\n\ninterface RubberBall \n{\n    public void bouncable();\n}\n\ninterface Movable \n{\n    public void moveable();\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to use interface Java public class Main { public static void main(String args[]) { BallAttributes objBallAttributes = new BallAttributes(); RubberBall objRubberBall = new BallAttributes(); objBallAttributes.bouncable(); objRubberBall.moveable(); } } class BallAttributes implements RubberBall, Movable { public void bouncable() { System.out.println(&#8220;I am Bouncing&#8221;); } public void moveable() { System.out.println(&#8220;I am Moving&#8221;); } } interface RubberBall {&hellip; <a href=\"https:\/\/codethataint.com\/blog\/how-to-use-interface-java\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[98,3],"tags":[],"class_list":["post-625","post","type-post","status-publish","format-standard","hentry","category-interface","category-java"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=625"}],"version-history":[{"count":0,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/625\/revisions"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}