Paste Search Dynamic
Recent pastes
perEmp
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. interface employee{
  7.  void saldetails();
  8.  void perdetails();
  9. }
  10. abstract class perEmp implements employee{
  11.  public void perdetails(){
  12.   system.out.println("per details"); }}
  13.  class Programmer extends perEmp{
  14.  public void saldetails(){
  15.   perdetails();
  16.   system.out.println("sal details"); }
  17.  public static void main(string[] args) {
  18.   perEmp emp=new Programmer();
  19.   emp.saldetails(); }}
Parsed in 0.009 seconds