
instantiation
词源
源自拉丁语 'instantia'(实例)+ 后缀 '-ation',17世纪进入英语,最初用于哲学领域,20世纪后广泛应用于计算机科学。
noun
❶ 指在编程中创建一个类的具体对象的过程,将抽象类转化为实际可用的实例。
“The instantiation of the class creates a new object in memory.”
(类的实例化会在内存中创建一个新对象。)
“Instantiation is a key concept in object-oriented programming.”
(实例化是面向对象编程中的关键概念。)
❶ 在哲学或逻辑学中,指将普遍概念具体化为特定实例的过程。
“The instantiation of universal concepts is central to Aristotelian philosophy.”
(普遍概念的具体化是亚里士多德哲学的核心。)
“This case is a perfect instantiation of the legal principle we discussed.”
(这个案例完美例证了我们讨论的法律原则。)
常见短语
object instantiation — 特指在编程中创建对象实例的过程,常用于讨论内存分配和构造函数调用。
“Proper object instantiation is crucial for memory management in Java.”
(正确的对象实例化对Java中的内存管理至关重要。)
template instantiation — 在C++等语言中,指编译器根据模板生成具体代码的过程。
“Template instantiation happens at compile time in C++.”
(在C++中,模板实例化发生在编译时。)