Category: JAVA Interface

JAVA Program to Find Area of Circle and Cylinder using interface 0

JAVA Program to Find Area of Circle and Cylinder using interface

Follow me JAVA Program to Find Area of Circle and Cylinder using interface : interface Shape { final float pi=3.142f; public void display(); public void area(); } class Circle implements Shape { int r;...

JAVA Program using Interface to Display Employee Salary Sheet 0

JAVA Program using Interface to Display Employee Salary Sheet

Follow me JAVA Program using Interface to Display Employee Salary Sheet: class employee { int empno; String name; String desig; void getPerson(int eno, String ename, String des) { empno = eno; name= ename; desig...

JAVA Program for using Multiple Interface 0

JAVA Program for using Multiple Interface

Follow me JAVA Program for using Multiple Interface: interface Printable { void print(); } interface Showable { void show(); } class MultiInterface implements Printable,Showable { public void print() { System.out.println(“Hello”); System.out.println(“from Pritable interface”); }...

JAVA Program to Display Student Result using Interface 0

JAVA Program to Display Student Result using Interface

Follow me JAVA Program to Display Student Result using Interface: interface calculateResult { public void calculate_total(); public void calculate_percentage(); public void calculate_grade(); } class student implements calculateResult { int no,m1,m2,m3 ; String name; int...