Advertisement
wingman007

Java - JavaApplication28 Hdd.java

Dec 7th, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package javaapplication28;
  6.  
  7. /**
  8.  *
  9.  * @author fmi
  10.  */
  11. public class Hdd extends StorageDeviceDeafult {
  12.     @Override
  13.     public String read(){
  14.         return "I am HDD. Read.";
  15.     }
  16.    
  17.     @Override
  18.     public String write(String data){
  19.         return "I am the HDD. Write.";
  20.     }    
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement