Anonymous interview question

Basic questions about oops concepts