每日科技英文26: Object-oriented programming(面向对象编程概念)

今日要点:

  1. OOP的概念
  2. 动名词和动词不定式做主语的微妙区别

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: 面向对象编程
  • paradigm: 典范,模式
  • based on the concept of : 基于...概念,此处做后置定语修饰paradigm

句型:

  • which my contain data, ...

  • (which my contain) and code,...
    定语从句修饰前面的内容。 and 连词,连接的内容如上所示

  • 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"

由此可见,连词的关键是分析出相连的两个平行部分的句型。

今日语法小知识:

动名词做主语和动词不定式做主语之间的微妙区别:

  1. Listerning to music makes me happy
    听音乐使我快乐

  2. To go to American for a visit is my plan for this year.
    去美国游玩是我今年的计划

两句的区别应该很明显了:

  • 动名词做主语表示已知的事实或曾经做过的,经常做的事情。
    由使我快乐可以推测出听音乐是经常做的事情,已经发生过的事情,如果换成动词不定式,To listern to music makes me happy,翻译为:去听音乐使我快乐(还没发生,就让你快乐了,好容易满足)

  • 动词不定式表示的是目的或计划,表示将要去做,但是尚未完成的事(去美国是我的目的,但尚未完成)

你可能感兴趣的:(每日科技英文26: Object-oriented programming(面向对象编程概念))