encapsulation example p3
inheritance example