interfacedemo
interfacedemo
/** * */ package com.training; /** * @author arun * */ public interface Shape { public String baseclass="shape"; public void Draw(); } class circle implements Shape { public void Draw() { System.out.println("Drawing Circle here"); } } package com.training; public class InterfaceDemo { public static void main(String[] args) { Shape circleshape=new circle(); circleshape.Draw(); } } /* output drawing circle here */
Please send comments to
vgdarur.javafive@blogger.com
Copyright © 2008 - iForeRunner.com
http://www.iforerunner.com/