3:59 am - Tuesday February 20, 2018

Java program for interface.

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

/**

*@author :CandidJava.com

*@descriptions : This is a java programĀ  for interface

*/

interface shape{

public String baseclass="shape";

public void Draw();

}

class circle implements shape{

public void Draw() {

System.out.println("Drawing Circle see here");

}

}

public class Interfac{

public static void main(String[] args) {

shape circleshape=new circle();

circleshape.Draw();

}

 

}

Output

D:\candidjava\code>javac Interfac.java

D:\candidjava\code>java Interfac

Drawing Circle see here

Filed in: Z-A All Java Codes

No comments yet.

Leave a Reply