Advertisement
gonzalob

Untitled

Jun 21st, 2022
984
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. package archivos2;
  2.  
  3. import java.io.IOException;
  4. import java.io.ObjectOutputStream;
  5. import java.io.OutputStream;
  6.  
  7. public class MyObjectOutputStream  extends ObjectOutputStream {
  8.  
  9.     // Constructor of this class
  10.     // 1. Default
  11.     MyObjectOutputStream() throws IOException
  12.     {
  13.  
  14.         // Super keyword refers to parent class instance
  15.         super();
  16.     }
  17.  
  18.     // Constructor of this class
  19.     // 1. Parameterized constructor
  20.     MyObjectOutputStream(OutputStream o) throws IOException
  21.     {
  22.         super(o);
  23.     }
  24.  
  25.     // Method of this class
  26.     public void writeStreamHeader() throws IOException
  27.     {
  28.         return;
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement