今日要點:
- OOP的概念
- 動名詞和動詞不定式做主語的微妙區(qū)別
Object-oriented programming (OOP) is a programming paradigm based on the concept of "object" , which may contain data, in the form of fields, often known as property and code, in the form of procedures, often known as methods
- OOP: 面向?qū)ο缶幊?/li>
- paradigm: 典范似忧,模式
- based on the concept of : 基于...概念,此處做后置定語修飾paradigm
句型:
which my contain data, ...
(which my contain) and code,...
定語從句修飾前面的內(nèi)容萨蚕。 and 連詞嘹叫,連接的內(nèi)容如上所示in the form of : 以...形式
property/method: 屬性/方法
Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than "logic".
- organized around objects: 圍繞著,后置定語修飾model
句型:
be a ... rather than...: be a后面是肯定傀履,rather than后面表否定司抱,是...而不是...
and 連詞绪励,所以:
is a programming language rather than "actions"
is a data rather than "logic"
由此可見,連詞的關(guān)鍵是分析出相連的兩個平行部分的句型澳眷。
今日語法小知識:
動名詞做主語和動詞不定式做主語之間的微妙區(qū)別:
Listerning to music makes me happy
聽音樂使我快樂To go to American for a visit is my plan for this year.
去美國游玩是我今年的計劃
兩句的區(qū)別應(yīng)該很明顯了:
動名詞做主語表示已知的事實或曾經(jīng)做過的胡嘿,經(jīng)常做的事情。
由使我快樂可以推測出聽音樂是經(jīng)常做的事情钳踊,已經(jīng)發(fā)生過的事情衷敌,如果換成動詞不定式勿侯,To listern to music makes me happy,翻譯為:去聽音樂使我快樂(還沒發(fā)生,就讓你快樂了缴罗,好容易滿足)動詞不定式表示的是目的或計劃助琐,表示將要去做,但是尚未完成的事(去美國是我的目的面氓,但尚未完成)