{"id":483,"date":"2019-07-14T13:41:00","date_gmt":"2019-07-14T11:41:00","guid":{"rendered":"http:\/\/www.labo.mathieurella.fr\/?p=483"},"modified":"2020-07-06T13:45:12","modified_gmt":"2020-07-06T11:45:12","slug":"object-oriented-programming-oop-vocabulary","status":"publish","type":"post","link":"https:\/\/www.labo.mathieurella.fr\/?p=483","title":{"rendered":"Object-Oriented Programming (OOP) Vocabulary"},"content":{"rendered":"\n<ul><li><strong>Class <\/strong>&#8211; a blueprint consisting of methods and attributes<\/li><li><strong>Object <\/strong>&#8211; an\u00a0<em>instance<\/em>\u00a0of a class. It can help to think of objects as something in the real world like a yellow pencil, a small dog, a blue shirt, etc. However, as you&#8217;ll see later in the lesson, objects can be more abstract.<\/li><li><strong>Attribute<\/strong> &#8211; a descriptor or characteristic. Examples would be color, length, size, etc. These attributes can take on specific values like blue, 3 inches, large, etc.<\/li><li><strong>Method<\/strong> &#8211; an action that a class or object could take<\/li><li><strong>OOP<\/strong> &#8211; a commonly used abbreviation for object-oriented programming<\/li><li><strong>Encapsulation<\/strong> &#8211; one of the fundamental ideas behind object-oriented programming is called encapsulation: you can combine functions and data all into a single entity. In object-oriented programming, this single entity is called a class. Encapsulation allows you to hide implementation details much like how the scikit-learn package hides the implementation of machine learning algorithms.<\/li><\/ul>\n\n\n\n<p>In English, you might hear an attribute described as a&nbsp;<em>property<\/em>,&nbsp;<em>description<\/em>,&nbsp;<em>feature<\/em>,&nbsp;<em>quality<\/em>,&nbsp;<em>trait<\/em>, or&nbsp;<em>characteristic<\/em>. All of these are saying the same thing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Class &#8211; a blueprint consisting of methods and attributes Object &#8211; an\u00a0instance\u00a0of a class. It can help to think of &#8230;<\/p>\n","protected":false},"author":1,"featured_media":484,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=\/wp\/v2\/posts\/483"}],"collection":[{"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=483"}],"version-history":[{"count":1,"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=\/wp\/v2\/posts\/483\/revisions"}],"predecessor-version":[{"id":485,"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=\/wp\/v2\/posts\/483\/revisions\/485"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=\/wp\/v2\/media\/484"}],"wp:attachment":[{"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.labo.mathieurella.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}