IBM Interview Question

OOP principles, asked me about encapsulation, inheritance etc.