Open/Close you could use interface incase of extenstion, it consumes less memory as it will only declare methods and fields without defining it. if you use the parent-child class in this case, and don't use the fields/methods in the parent class, it's redundant and consumes more memory