Teradyne interview question

difference between class and inheritance