abbr.面向对象的程序设计(ObjectOrientedProgramming);物件导向程式设计(Object-OrientedProgramming)
so oop───所以,哎呀
alley oop───空中接力(等于alley-oop)
and i oop───我很抱歉
Object-oriented programming (OOP) is a wonderful tool.───面向对象编程 (OOP) 是一种极好的工具。
Remember your first few designs with OOP?───还记得您用 OOP 最初做的几个设计 吗?
It might appear that OOP and FP are incompatible.───看起来OOP和fp像是不兼容的。
The trick is to think of OOP entirely as a question of "what code gets called" and "how is the decision made. "───关键是OOP只涉及两个问题:“调用什么代码”以及“如何做出这一决策”。
On one play, Gasol tried to pass to Bynum for an alley-oop dunk, but the ball bounced off the front of the rim.───在一次进攻中,加索尔尝试给安猪做一个精彩的空中接力,但是球确被篮筐前沿反弹了。
This reuse is one of the benefits of OOP that make it a favorite with programmers.───这种重用是使OOP成为程序员宠儿的好处之一。
When you struggle with an OOP problem, your program still works, it's just sort of hard to maintain. Allegedly.───据说,如果你没学好OOP,你的程序依然可以运行,只是维护起来有点难。
Thus, OOP allows you to describe the problem in terms of the problem, rather than in terms of the computer where the solution will run.───因此,OOP允许你描述问题按照问题的方式,优于按照电脑运行解决方案的方式来描述问题。
OOP languages are flexible and adaptable, so programs or parts of programs can be used for more than one task.───面向对象程序设计语言灵活、适应性强,所以程序或程序的某些部分可用于不止一项任务。