02_Swift_interview_questions/Software_Development_Terminology.md
-aa + ba ? b : ca = 5 5 assign to a
a + b a add b / a plus b
a - b a minus b
a * b a multiplied by b / a times b
a / b a divided by b
9 % 4 9 remainder with 4
a += 2 a plus equals 2
a ?? b
1...5 from 1 to 5a..<b from a to b, but doesn't include b.names[2...] from index 2 to the end of array. names[..<2] from index 0 to index 2. ...5 from start to 5封装:encapsulation (capsule是胶囊,encapulate就是装到胶囊里,封装的动词)
集成:inheritance (inherit继承的动词)
多态:polymorphism (在希腊语里poly是多,morphic是形态学的)
函数:function
方法:method
参数:parameter
类:class
子类:subclass
父类:superclass
结构体:structure
元组:tuple
构造函数:constructor
实例:instance (实例化:instantiation)
对象:object
变量:variable
全局变量:global variable
局部变量:local variable
作用域:scope
常量:constant
成员变量:member
属性:property
储存变量:stored property
计算变量:computed property
栈:stack
堆:heap
属性包装器:property wrapper
字段:field
可空类型:optional type
解包可空类型:unwrapping optionals
强制解包:force unwrap
模型:model
模块:module (模块化:modulize)
值类型:value type
引用类型:reference type
重写:override
重载:overloading (运算符重载:operator overloading)
开辟内存:alloc memory
释放:release
持有:retain/store
循环引用:retain cycle/cycle reference
垃圾回收:garbage collection
内存泄漏:memory leak
调用:call/invoke
触发:trigger
扩展:extension
模版:template
原形:prototype
自动引用计数:ARC(automatic reference counting)
手动持有释放:MRR(manual retain-release)
上下文: context
声明式:declarative
祈使式:imperative
拆分:segregate/slice/split/separate
回调:callback