Advertisement
hieunh1801

Java Unit 21: Class - Interface - Abstract class

Jul 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. package edu.java.basic
  2.  
  3. public class Unit21{
  4.     private String name ;
  5.     public void show(){
  6.     }
  7. }
  8.  
  9. interface Human{
  10.     public final static String COUNTRY_NAME = " Viet Nam ";
  11.    
  12.     public void show ();
  13. }
  14.  
  15. abstract class Employee{
  16.     private String name;
  17.    
  18.     public void move1(){
  19.     }
  20.    
  21.     public abstract move2();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement