×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Camilo Sampedro
Added: Apr 8, 2015 6:36 PM
Views: 15
Tags: no tags
Abstract class template
  1. public abstract class AbstractClass{
  2.  
  3.     protected static int variable;
  4.     protected static Object anotherVariable;
  5.  
  6.     public Object method() {
  7.         /**
  8.          * Code
  9.          */
  10.         return null;
  11.     }
  12.  
  13.     protected abstract void methodThatHasToBeImplemented();
  14. }