Monday, January 13, 2014

Java interface Programming Example 1

//Note:  Analysis the programs errors,outputs and Understand the interface concept in Java

//Banks interface
interface Banks extends Bankp{
void tell();
void print();

//Implementation class
class Bank implements Banks{
public void tell(){
System.out.println("show me security for loan");
public void print(){
System.out.println("my certificate is my security for loan");
public void property(){
System.out.println("my property is");
class Test1{
public static void main(String arg[]){
Bank b1=new Bank();
Post a Comment