Anonymous interview question

oops concept like inheritance,interfaces and sorting algorithms