继承用英语怎么说

2024-09-18 13:01:35
少儿英语启蒙
少儿英语启蒙认证

少儿英语启蒙为您分享以下优质知识

继承在英语中称为 inheritance。这个词来自拉丁语中的 "inheritare",其原意是 "to receive or take over something from someone else." 例句如下:

She inherited her mother's talent for music. (她继承了她母亲的音乐天赋。)

He inherited a large sum of money from his uncle. (他从叔叔那里继承了一大笔钱。)

The company will be inherited by his children when he retires. (公司将在他退休后由他的孩子继承。)

在计算机编程中,继承也是一个常见的概念,指的是一个类可以从另一个类中继承属性和方法。例如:

The Dog class can inherit the Animal class. (Dog 类可以继承 Animal 类。)

The Square class can inherit the Shape class. (Square 类可以继承 Shape 类。)