SLK Group interview question

asked about oops classes and inheritence