Java basic object oriented principles.