{"id":276,"date":"2018-03-09T10:35:44","date_gmt":"2018-03-09T08:35:44","guid":{"rendered":"http:\/\/users.sch.gr\/chatzipap\/?p=276"},"modified":"2018-03-26T22:17:12","modified_gmt":"2018-03-26T20:17:12","slug":"code_reuse_oop","status":"publish","type":"post","link":"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/","title":{"rendered":"Code ReUse 3 &#8211; OOP"},"content":{"rendered":"<p style=\"text-align: justify;\">\u039c\u03af\u03b1 \u03ac\u03bb\u03bb\u03b7 \u03c0\u03c1\u03bf\u03c3\u03ad\u03b3\u03b3\u03b9\u03c3\u03b7 \u03bb\u03bf\u03b9\u03c0\u03cc\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03b4\u03b9\u03b1\u03b8\u03ad\u03c3\u03b9\u03bc\u03bf \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1 \u03c0\u03bf\u03c5 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03ae\u03b4\u03b7 \u03b1\u03bd\u03b1\u03c0\u03c4\u03cd\u03be\u03b5\u03b9 \u03c3\u03b5 \u03ac\u03bb\u03bb\u03b1 \u03c0\u03c1\u03bf\u03b3\u03c1\u03ac\u03bc\u03bc\u03b1\u03c4\u03b1 \u03b5\u03af\u03bd\u03b1\u03b9 \u03bd\u03b1 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03bf\u03c5\u03bc\u03b5\u00a0\u03c4\u03b9\u03c2 \u03c4\u03b5\u03c7\u03bd\u03b9\u03ba\u03ad\u03c2 \u03c4\u03bf\u03c5 \u03b1\u03bd\u03c4\u03b9\u03ba\u03b5\u03b9\u03bc\u03b5\u03bd\u03bf\u03c3\u03c4\u03c1\u03b5\u03c6\u03bf\u03cd\u03c2 \u03c0\u03c1\u03bf\u03b3\u03c1\u03b1\u03bc\u03bc\u03b1\u03c4\u03b9\u03c3\u03bc\u03bf\u03cd (OOP &#8211; Object Oriented Programming).<!--more--> \u03a4\u03b1 \u03ac\u03c1\u03b8\u03c1\u03b1 \u03b4\u03b5\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03b3\u03b9\u03b1 \u03c0\u03bf\u03bb\u03bb\u03ad\u03c2 \u03b8\u03b5\u03c9\u03c1\u03af\u03b5\u03c2 &#8230; <strong>\u03b8\u03b5\u03c9\u03c1\u03bf\u03cd\u03bc\u03b5<\/strong> \u03bb\u03bf\u03b9\u03c0\u03cc\u03bd \u03cc\u03c4\u03b9 \u03be\u03ad\u03c1\u03b5\u03c4\u03b5 \u03c4\u03b9 \u03b5\u03af\u03bd\u03b1\u03b9 \u03ba\u03b1\u03b9 \u03c0\u03c9\u03c2 \u03c5\u03bb\u03bf\u03c0\u03bf\u03b9\u03b5\u03af\u03c4\u03b1\u03b9 \u03c3\u03c4\u03b7 \u03b3\u03bb\u03ce\u03c3\u03c3\u03b1 \u03a0\u03ac\u03ca\u03b8\u03bf\u03bd \u03ba\u03b1\u03b9 \u03c0\u03c1\u03bf\u03c7\u03c9\u03c1\u03bf\u03cd\u03bc\u03b5, \u03b3\u03b9\u03b1 \u03b5\u03c3\u03ac\u03c2 \u03c0\u03bf\u03c5 \u03b4\u03b5\u03bd \u03be\u03ad\u03c1\u03b5\u03c4\u03b5 \u03b1\u03ba\u03cc\u03bc\u03b1 OOP, \u03b4\u03b9\u03b1\u03b2\u03ac\u03c3\u03c4\u03b5 \u03ba\u03b1\u03b9\u00a0\u03b5\u03c0\u03b9\u03c3\u03c4\u03c1\u03ad\u03c8\u03c4\u03b5 \u03b4\u03c1\u03b9\u03bc\u03cd\u03c4\u03b5\u03c1\u03bf\u03b9, \u03ae \u03c3\u03c5\u03bd\u03b5\u03c7\u03af\u03c3\u03c4\u03b5 \u03bc\u03b5 \u03b4\u03b9\u03ba\u03ae \u03c3\u03b1\u03c2 \u03b5\u03c5\u03b8\u03cd\u03bd\u03b7.<\/p>\n<p style=\"text-align: justify;\">\u0388\u03c3\u03c4\u03c9\u00a0\u03cc\u03c4\u03b9 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03c5\u03bb\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03b5\u03b9 \u03c4\u03b9\u03c2 \u03c3\u03c5\u03bd\u03b1\u03c1\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2 \u03c4\u03bf\u03c5 \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf\u03c5 \u03ac\u03c1\u03b8\u03c1\u03bf\u03c5 \u03b4\u03b7\u03bb\u03b1\u03b4\u03ae \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03c4\u03bf\u03bd \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1:<\/p>\n<pre class=\"lang:python decode:true\" title=\"\u03a3\u03c5\u03bd\u03b1\u03c1\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2 \u03b5\u03c0\u03b5\u03be\u03b5\u03c1\u03b3\u03b1\u03c3\u03af\u03b1\u03c2 \u03bb\u03b9\u03c3\u03c4\u03ce\u03bd\">#\r\n#\r\ndef unique(a_list):\r\n    '''\u0397 \u03c3\u03c5\u03bd\u03ac\u03c1\u03c4\u03b7\u03c3\u03b7 \u03b5\u03c0\u03b9\u03c3\u03c4\u03c1\u03ad\u03c6\u03b5\u03b9 \u03bc\u03af\u03b1 \r\n    \u03bd\u03ad\u03b1 \u03bb\u03af\u03c3\u03c4\u03b1 \u03bc\u03b5 \u03c4\u03b1 \u03bc\u03bf\u03bd\u03b1\u03b4\u03b9\u03ba\u03ac \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1 \u03c4\u03b7\u03c2 1\u03b7\u03c2'''\r\n    new_list = []\r\n    for item in a_list:\r\n        if item not in new_list:\r\n            new_list.append(item)\r\n    return new_list\r\n\r\ndef pop_all(item, a_list):\r\n    '''\u0397 \u03a3\u03c5\u03bd\u03ac\u03c1\u03c4\u03b7\u03c3\u03b7 \u03b4\u03b9\u03b1\u03b3\u03c1\u03ac\u03c6\u03b5\u03b9 \u03c4\u03b1 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1\r\n    item \u03b1\u03c0\u03cc \u03c4\u03b7 \u03bb\u03af\u03c3\u03c4\u03b1 a_list'''\r\n    i = 0\r\n    while i &lt;= len(a_list)-1:\r\n        if item == a_list[i]:\r\n            a_list.pop(i)\r\n        else:\r\n            i += 1\r\n    return a_list<\/pre>\n<p style=\"text-align: justify;\">\u03a3\u03ba\u03b5\u03c6\u03c4\u03cc\u03bc\u03b1\u03c3\u03c4\u03b5 \u03c4\u03bf \u03b5\u03be\u03ae\u03c2: \u039f\u03b9 \u03bb\u03af\u03c3\u03c4\u03b5\u03c2 \u03ad\u03c7\u03bf\u03c5\u03bd \u03c4\u03b7 \u03b4\u03b9\u03ba\u03ae \u03c4\u03bf\u03c5\u03c2 \u03ba\u03bb\u03ac\u03c3\u03b7 \u03bc\u03b5 \u03ad\u03bd\u03b1 \u03c3\u03c9\u03c1\u03cc \u03bc\u03b5\u03b8\u03cc\u03b4\u03bf\u03c5\u03c2 (\u03c3\u03c5\u03bd\u03b1\u03c1\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2 \u03c0\u03bf\u03c5 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bd \u03b5\u03bd\u03ad\u03c1\u03b3\u03b5\u03b9\u03b5\u03c2 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03b5 \u03b1\u03bd\u03c4\u03b9\u03ba\u03b5\u03af\u03bc\u03b5\u03bd\u03b1) \u03cc\u03c0\u03c9\u03c2 <strong>reverse<\/strong>, <strong>sort<\/strong>, <strong>append<\/strong>, <strong>pop<\/strong> \u03ba.\u03ac. \u03ad\u03c4\u03bf\u03b9\u03bc\u03b5\u03c2. \u039c\u03ae\u03c0\u03c9\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03c0\u03c1\u03bf\u03c3\u03b8\u03ad\u03c3\u03bf\u03c5\u03bc\u03b5 \u03ba\u03b1\u03b9 \u03ac\u03bb\u03bb\u03b5\u03c2 \u03b5\u03c6\u03cc\u03c3\u03bf\u03bd \u03ba\u03b1\u03b9 \u03b1\u03c5\u03c4\u03ad\u03c2 \u03c0\u03bf\u03c5\u00a0\u03c5\u03bb\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03b1\u03bc\u03b5 \u03c0\u03b1\u03c1\u03b1\u03c0\u03ac\u03bd\u03c9 \u03ad\u03c7\u03bf\u03c5\u03bd \u03c0\u03b1\u03c1\u03cc\u03bc\u03bf\u03b9\u03b1 \u03c7\u03b1\u03c1\u03b1\u03ba\u03c4\u03b7\u03c1\u03b9\u03c3\u03c4\u03b9\u03ba\u03ac ?<\/p>\n<p style=\"text-align: justify;\">\u03a4\u03bf \u03bd\u03b1 \u03c6\u03c4\u03b9\u03ac\u03be\u03bf\u03c5\u03bc\u03b5 \u03bc\u03af\u03b1 \u03bd\u03ad\u03b1 \u03ba\u03bb\u03ac\u03c3\u03b7 \u03ba\u03b1\u03b9 \u03bd\u03b1 \u03b2\u03ac\u03bb\u03bf\u03c5\u03bc\u03b5 \u03c4\u03b9\u03c2 \u03b4\u03b9\u03ba\u03ad\u03c2 \u03bc\u03b1\u03c2 \u03bc\u03cc\u03bd\u03bf, \u03b5\u03af\u03bd\u03b1\u03b9 \u03b2\u03b5\u03b2\u03b1\u03af\u03c9\u03c2 \u03b2\u03b5\u03b2\u03b1\u03af\u03c9\u03c2 \u03bc\u03af\u03b1 \u03bb\u03cd\u03c3\u03b7, \u03c3\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03ba\u03b5\u03b9\u03bc\u03ad\u03bd\u03b7 \u03cc\u03bc\u03c9\u03c2 \u03c0\u03b5\u03c1\u03af\u03c0\u03c4\u03c9\u03c3\u03b7 \u03b5\u03c6\u03cc\u03c3\u03bf\u03bd \u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03cd\u03bc\u03b5 \u03c0\u03ac\u03bd\u03c9 \u03c3\u03b5 \u03bb\u03af\u03c3\u03c4\u03b5\u03c2, \u03b8\u03b1 \u03b1\u03c0\u03c9\u03bb\u03ad\u03c3\u03bf\u03c5\u03bc\u03b5 \u03b1\u03c5\u03c4\u03ad\u03c2 \u03c0\u03bf\u03c5 \u03bc\u03b1\u03c2 \u03c0\u03b1\u03c1\u03ad\u03c7\u03b5\u03b9 \u03b5\u03b3\u03b3\u03b5\u03bd\u03ce\u03c2 \u03b7 \u03ba\u03bb\u03ac\u03c3\u03b7 \u03c4\u03b7\u03c2 \u03bb\u03af\u03c3\u03c4\u03b1\u03c2. \u0393\u03b9&#8217; \u03b1\u03c5\u03c4\u03cc \u03bb\u03bf\u03b9\u03c0\u03cc\u03bd \u03c6\u03c4\u03b9\u03ac\u03c7\u03bd\u03bf\u03c5\u03bc\u03b5 \u03cc\u03c7\u03b9 \u03bc\u03af\u03b1 \u03bd\u03ad\u03b1 \u03ba\u03bb\u03ac\u03c3\u03b7\u00a0 \u03b1\u03bb\u03bb\u03ac \u03c5\u03c0\u03bf\u03ba\u03bb\u03ac\u03c3\u03b7 (\u03ae \u03c0\u03b1\u03c1\u03ac\u03b3\u03c9\u03b3\u03b7 \u03ba\u03bb\u03ac\u03c3\u03b7) \u03c0\u03bf\u03c5 \u03b8\u03b1 \u03ba\u03bb\u03b7\u03c1\u03bf\u03bd\u03bf\u03bc\u03ae\u03c3\u03b5\u03b9 \u03cc\u03bb\u03b1 \u03c4\u03b1 \u03c7\u03b1\u03c1\u03b1\u03ba\u03c4\u03b7\u03c1\u03b9\u03c3\u03c4\u03b9\u03ba\u03ac (\u03b9\u03b4\u03b9\u03cc\u03c4\u03b7\u03c4\u03b5\u03c2 \u03ba\u03b1\u03b9 \u03bc\u03b5\u03b8\u03cc\u03b4\u03bf\u03c5\u03c2) \u03c4\u03b7\u03c2 \u03b2\u03b1\u03c3\u03b9\u03ba\u03ae\u03c2 \u03ba\u03bb\u03ac\u03c3\u03b7\u03c2 (\u03c5\u03c0\u03b5\u03c1\u03ba\u03bb\u03ac\u03c3\u03b7\u03c2). \u0391\u03c2 \u03b3\u03c1\u03ac\u03c8\u03bf\u03c5\u03bc\u03b5 \u03bb\u03bf\u03b9\u03c0\u03cc\u03bd \u03c4\u03b1 \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9:<\/p>\n<pre class=\"lang:python decode:true\" title=\"\u039a\u03bb\u03ac\u03c3\u03b7 \u03b5\u03c0\u03b5\u03be\u03b5\u03c1\u03b3\u03b1\u03c3\u03af\u03b1\u03c2 \u03bb\u03b9\u03c3\u03c4\u03ce\u03bd\">#\r\n#\r\nclass MyList(list):\r\n\r\n    def unique(self):\r\n        '''\u0397 \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf\u03c2 \u03b5\u03c0\u03b9\u03c3\u03c4\u03c1\u03ad\u03c6\u03b5\u03b9 \u03bc\u03af\u03b1 \r\n        \u03bd\u03ad\u03b1 \u03bb\u03af\u03c3\u03c4\u03b1 \u03bc\u03b5 \u03c4\u03b1 \u03bc\u03bf\u03bd\u03b1\u03b4\u03b9\u03ba\u03ac \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1 \u03c4\u03b7\u03c2 1\u03b7\u03c2'''\r\n        new_list = []\r\n        for item in self:\r\n            if item not in new_list:\r\n                new_list.append(item)\r\n        return MyList(new_list)\r\n\r\n    def pop_all(self, item):\r\n        '''\u0397 \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf\u03c2 \u03b4\u03b9\u03b1\u03b3\u03c1\u03ac\u03c6\u03b5\u03b9 \u03c4\u03b1 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1\r\n        item \u03b1\u03c0\u03cc \u03c4\u03bf \u03b1\u03bd\u03c4\u03b9\u03ba\u03b5\u03af\u03bc\u03b5\u03bd\u03bf'''\r\n        i = 0\r\n        while i &lt;= len(self)-1:\r\n            if item == self[i]:\r\n                self.pop(i)\r\n            else:\r\n                i += 1\r\n        return self\r\n      \r\n\r\nif __name__ == '__main__':\r\n    pass<\/pre>\n<p>\u03ba\u03b1\u03b9 \u03b1\u03c2 \u03b5\u03ba\u03c4\u03b5\u03bb\u03ad\u03c3\u03bf\u03c5\u03bc\u03b5 \u03b1\u03c0\u03cc \u03c4\u03b7 \u03b3\u03c1\u03b1\u03bc\u03bc\u03ae \u03c4\u03bf\u03c5 \u03b4\u03b9\u03b5\u03c1\u03bc\u03b7\u03bd\u03ad\u03b1 \u03c4\u03b9\u03c2 \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9 \u03b5\u03bd\u03c4\u03bf\u03bb\u03ad\u03c2:<\/p>\n<pre class=\"lang:python decode:true \">&gt;&gt;&gt;\r\n&gt;&gt;&gt;\r\n&gt;&gt;&gt; x = [1,2,3,4,5,4,3,2,1]\r\n&gt;&gt;&gt; y = MyList(x)\r\n&gt;&gt;&gt; type(x) &lt;type 'list'&gt;\r\n&gt;&gt;&gt; type(y) &lt;class '__main__.MyList'&gt;<\/pre>\n<p style=\"text-align: justify;\">\u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03ae\u03c3\u03b1\u03bc\u03b5 \u03b4\u03cd\u03bf \u03b1\u03bd\u03c4\u03b9\u03ba\u03b5\u03af\u03bc\u03b5\u03bd\u03b1 \u03c4\u03bf <strong>x<\/strong> &amp; <strong>y<\/strong> \u03c3\u03c4\u03b9\u03b3\u03bc\u03b9\u03cc\u03c4\u03c5\u03c0\u03b1 \u03c4\u03c9\u03bd \u03ba\u03bb\u03ac\u03c3\u03b5\u03c9\u03bd <strong>list<\/strong> &amp; <strong>MyList<\/strong> \u03b1\u03bd\u03c4\u03af\u03c3\u03c4\u03bf\u03b9\u03c7\u03b1. \u0395\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 \u03c4\u03ce\u03c1\u03b1 \u03c4\u03b9\u03c2 \u03b5\u03bd\u03c4\u03bf\u03bb\u03ad\u03c2:<\/p>\n<pre class=\"lang:python decode:true \">&gt;&gt;&gt;\r\n&gt;&gt;&gt;\r\n&gt;&gt;&gt; y.pop_all(2)\r\n[1, 3, 4, 5, 4, 3, 1]\r\n&gt;&gt;&gt; y\r\n[1, 3, 4, 5, 4, 3, 1]\r\n&gt;&gt;&gt; type(y)\r\n&lt;class '__main__.MyList'&gt;<\/pre>\n<p style=\"text-align: justify;\">\u03b7 &#8220;\u03bc\u03b1\u03ca\u03bb\u03af\u03c3\u03c4\u03b1&#8221; <strong>y<\/strong> \u03b4\u03b9\u03b1\u03b8\u03ad\u03c4\u03b5\u03b9 \u03c4\u03b7 \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf <strong>pop_all<\/strong>. \u0395\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 \u03b5\u03c0\u03af\u03c3\u03b7\u03c2 \u03c4\u03b9\u03c2 \u03b5\u03bd\u03c4\u03bf\u03bb\u03ad\u03c2:<\/p>\n<pre class=\"lang:python decode:true \">&gt;&gt;&gt;\r\n&gt;&gt;&gt;\r\n&gt;&gt;&gt; z = y.unique()\r\n&gt;&gt;&gt; type(y)\r\n&lt;class '__main__.MyList'&gt;\r\n&gt;&gt;&gt; type(z)\r\n&lt;class '__main__.MyList'&gt;\r\n&gt;&gt;&gt; print z\r\n[1, 3, 4, 5]<\/pre>\n<p style=\"text-align: justify;\">\u03ba\u03b1\u03b8\u03ce\u03c2 \u03ba\u03b1\u03b9 \u03c4\u03b7 \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf <strong>unique<\/strong>. \u03a0\u03c1\u03bf\u03c3\u03ad\u03be\u03c4\u03b5 \u03c4\u03ce\u03c1\u03b1 \u03c4\u03bf \u03b5\u03be\u03ae\u03c2: \u03b7 \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf\u03c2 <strong>pop_all<\/strong> \u03c4\u03c1\u03bf\u03c0\u03bf\u03c0\u03bf\u03b9\u03b5\u03af \u03c4\u03b7\u03bd \u03b1\u03c1\u03c7\u03b9\u03ba\u03ae \u03bb\u03af\u03c3\u03c4\u03b1, \u03b5\u03bd\u03ce \u03b7 \u03bc\u03ad\u03b8\u03bf\u03b4\u03bf\u03c2 <strong>unique<\/strong> \u03b5\u03c0\u03b9\u03c3\u03c4\u03c1\u03ad\u03c6\u03b5\u03b9 \u03bc\u03af\u03b1 \u03bd\u03ad\u03b1 &#8220;\u03bc\u03b1\u03ca\u03bb\u03af\u03c3\u03c4\u03b1&#8221; \u03b1\u03c6\u03ae\u03bd\u03bf\u03bd\u03c4\u03b1\u03c2 \u03b1\u03bd\u03ad\u03c0\u03b1\u03c6\u03b7 \u03c4\u03b7\u03bd \u03b1\u03c1\u03c7\u03b9\u03ba\u03ae. \u03a4\u03bf \u03b2\u03bb\u03ad\u03c0\u03bf\u03c5\u03bc\u03b5 \u03be\u03b1\u03bd\u03ac \u03c0\u03b1\u03c1\u03b1\u03ba\u03ac\u03c4\u03c9:<\/p>\n<pre class=\"lang:python decode:true \">&gt;&gt;&gt;\r\n&gt;&gt;&gt;\r\n&gt;&gt;&gt; x = [1,2,3,4,5,4,3,2,1]\r\n&gt;&gt;&gt; y = MyList(x)\r\n&gt;&gt;&gt; z = y.unique()\r\n&gt;&gt;&gt; y\r\n[1, 2, 3, 4, 5, 4, 3, 2, 1]\r\n&gt;&gt;&gt; z\r\n[1, 2, 3, 4, 5]\r\n&gt;&gt;&gt; type(y)\r\n&lt;class '__main__.MyList'&gt;\r\n&gt;&gt;&gt; type(z)\r\n&lt;class '__main__.MyList'&gt;<\/pre>\n<p>\u0395\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bc\u03b5 \u03c4\u03ce\u03c1\u03b1 \u03c4\u03b9\u03c2 \u03b5\u03bd\u03c4\u03bf\u03bb\u03ad\u03c2:<\/p>\n<pre class=\"lang:python decode:true \">&gt;&gt;&gt;\r\n&gt;&gt;&gt;\r\n&gt;&gt;&gt; z.reverse()\r\n&gt;&gt;&gt; z\r\n[5, 4, 3, 1]\r\n&gt;&gt;&gt; z.sort()\r\n&gt;&gt;&gt; z\r\n[1, 3, 4, 5]\r\n&gt;&gt;&gt; x.unique()\r\n\r\nTraceback (most recent call last):\r\n File \"&lt;pyshell#20&gt;\", line 1, in &lt;module&gt;\r\n x.unique()\r\nAttributeError: 'list' object has no attribute 'unique'<\/pre>\n<p style=\"text-align: justify;\">\u03a4\u03bf \u03bd\u03ad\u03bf \u03b1\u03bd\u03c4\u03b9\u03ba\u03b5\u03af\u03bc\u03b5\u03bd\u03bf &#8220;\u03bc\u03b1\u03ca\u03bb\u03af\u03c3\u03c4\u03b1\u03c2&#8221; <strong>z<\/strong> \u03b4\u03b9\u03b1\u03b8\u03ad\u03c4\u03b5\u03b9 \u03cc\u03bb\u03b5\u03c2 \u03c4\u03b9\u03c2 \u03bc\u03b5\u03b8\u03cc\u03b4\u03bf\u03c5\u03c2 \u03b1\u03c6\u03bf\u03cd \u03c4\u03b9\u03c2 \u03ad\u03c7\u03b5\u03b9 \u03ba\u03bb\u03b7\u03c1\u03bf\u03bd\u03bf\u03bc\u03ae\u03c3\u03b5\u03b9 \u03b1\u03c0\u03cc \u03c4\u03b7\u03bd \u03b1\u03c1\u03c7\u03b9\u03ba\u03ae \u03ba\u03bb\u03ac\u03c3\u03b7 \u03c4\u03b7\u03c2 \u03bb\u03af\u03c3\u03c4\u03b1\u03c2. \u0395\u03bd\u03ce \u03c4\u03bf \u03b1\u03bd\u03c4\u03b9\u03ba\u03b5\u03af\u03bc\u03b5\u03bd\u03bf <strong>x<\/strong> \u03c0\u03bf\u03c5 \u03b5\u03af\u03bd\u03b1\u03b9 \u03bc\u03af\u03b1 \u03b1\u03c0\u03bb\u03ae \u03bb\u03af\u03c3\u03c4\u03b1 \u03b4\u03b5 \u03b4\u03b9\u03b1\u03b8\u03ad\u03c4\u03b5\u03b9 \u03c4\u03b9\u03c2 \u03bd\u03ad\u03b5\u03c2 \u03bc\u03b5\u03b8\u03cc\u03b4\u03bf\u03c5\u03c2 <strong>pop_all<\/strong> &amp; <strong>unique<\/strong>. \u0388\u03c4\u03c3\u03b9 \u03b5\u03ac\u03bd \u03b5\u03c0\u03b9\u03b8\u03c5\u03bc\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03b4\u03b9\u03b1\u03b8\u03ad\u03c3\u03b9\u03bc\u03bf \u03c4\u03bf\u03bd \u03ba\u03c9\u03b4\u03b9\u03ba\u03ac \u03bc\u03b1\u03c2 \u03b5\u03bd\u03b8\u03c5\u03bb\u03b1\u03ba\u03ce\u03bd\u03bf\u03bd\u03c4\u03b1\u03c2 \u03c4\u03b9\u03c2 \u03c3\u03c5\u03bd\u03b1\u03c1\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2 \u03bc\u03b1\u03c2 \u03c3\u03b5 \u03ba\u03bb\u03ac\u03c3\u03b5\u03b9\u03c2 \u03bc\u03c0\u03bf\u03c1\u03bf\u03cd\u03bc\u03b5 \u03bd\u03b1 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03ad\u03bd\u03b1 \u03b9\u03c3\u03c7\u03c5\u03c1\u03cc \u03ba\u03b1\u03b9 \u03b5\u03c0\u03b5\u03ba\u03c4\u03ac\u03c3\u03b9\u03bc\u03bf \u03c3\u03c7\u03b5\u03b4\u03b9\u03b1\u03c3\u03bc\u03cc \u03c3\u03c4\u03b7\u03bd \u03c5\u03bb\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03c4\u03c9\u03bd \u03b5\u03c6\u03b1\u03c1\u03bc\u03bf\u03b3\u03ce\u03bd \u03bc\u03b1\u03c2.<\/p>\n<p>\u03a0\u03b1\u03c4\u03ae\u03c3\u03c4\u03b5 \u03c4\u03bf play \u03bd\u03b1 \u03c6\u03bf\u03c1\u03c4\u03ce\u03c3\u03b5\u03c4\u03b5 \u03c4\u03b7\u03bd \u03ba\u03bb\u03ac\u03c3\u03b7 \u03ba\u03b1\u03b9 \u03ba\u03ac\u03bd\u03c4\u03b5 \u03ba\u03b1\u03b9 \u03b5\u03c3\u03b5\u03af\u03c2 \u03c4\u03b9\u03c2 \u03b4\u03bf\u03ba\u03b9\u03bc\u03ad\u03c2 \u03c3\u03b1\u03c2 \u03c3\u03c4\u03bf \u03b4\u03b9\u03b5\u03c1\u03bc\u03b7\u03bd\u03ad\u03b1, \u03bc\u03c0\u03bf\u03c1\u03b5\u03af\u03c4\u03b5 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03b1\u03bb\u03bb\u03b1\u03b3\u03ad\u03c2 \u03ae \u03c0\u03c1\u03bf\u03c3\u03b8\u03ae\u03ba\u03b5\u03c2 \u03c3\u03c4\u03bf\u03bd \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1 \u03c0\u03b1\u03c4\u03ce\u03bd\u03c4\u03b1\u03c2 \u03c4\u03bf \u03bc\u03bf\u03bb\u03cd\u03b2\u03b9<br \/>\n<iframe loading=\"lazy\" width=\"100%\" height=\"600\" src=\"https:\/\/trinket.io\/embed\/python\/08d8be9034?toggleCode=true&amp;runOption=console&amp;runMode=console\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p style=\"text-align: justify;\">\u03a7\u03bc\u03bc \u03b1\u03c5\u03c4\u03ac \u03bb\u03bf\u03b9\u03c0\u03cc\u03bd \u03b3\u03b9\u03b1 \u03c3\u03ae\u03bc\u03b5\u03c1\u03b1 &#8230;.<\/p>\n<p style=\"text-align: justify;\">\u0397 \u03bc\u03af\u03bd\u03b9 \u03c3\u03b5\u03b9\u03c1\u03ac \u03b5\u03c0\u03b1\u03bd\u03b1\u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7\u03c2 \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1 \u03ad\u03bb\u03b1\u03b2\u03b5 \u03c4\u03ad\u03bb\u03bf\u03c2. \u0395\u03bb\u03c0\u03af\u03b6\u03c9 \u03bd\u03b1 \u03c4\u03b7 \u03b2\u03c1\u03ae\u03ba\u03b1\u03c4\u03b5 \u03c7\u03c1\u03ae\u03c3\u03b9\u03bc\u03b7. \u0395\u03ac\u03bd \u03c0\u03ac\u03bb\u03b9 <strong>\u03c7\u03b1\u03b8\u03ae\u03ba\u03b1\u03c4\u03b5<\/strong>\u00a0\u03c3\u03c4\u03b9\u03c2 \u03c0\u03bf\u03bb\u03bb\u03ad\u03c2 \u03c0\u03bb\u03b7\u03c1\u03bf\u03c6\u03bf\u03c1\u03af\u03b5\u03c2, \u03b4\u03bf\u03ba\u03b9\u03bc\u03ac\u03c3\u03c4\u03b5 \u03ba\u03ac\u03c4\u03b9 \u03b4\u03b9\u03b1\u03c6\u03bf\u03c1\u03b5\u03c4\u03b9\u03ba\u03cc:<\/p>\n<p><img loading=\"lazy\" class=\" aligncenter\" src=\"https:\/\/vignette.wikia.nocookie.net\/lostpedia\/images\/1\/16\/Lost-season1.jpg\/revision\/latest?cb=20070303221754\" alt=\"\u0391\u03c0\u03bf\u03c4\u03ad\u03bb\u03b5\u03c3\u03bc\u03b1 \u03b5\u03b9\u03ba\u03cc\u03bd\u03b1\u03c2 \u03b3\u03b9\u03b1 lost\" width=\"519\" height=\"389\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u039c\u03af\u03b1 \u03ac\u03bb\u03bb\u03b7 \u03c0\u03c1\u03bf\u03c3\u03ad\u03b3\u03b3\u03b9\u03c3\u03b7 \u03bb\u03bf\u03b9\u03c0\u03cc\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03b4\u03b9\u03b1\u03b8\u03ad\u03c3\u03b9\u03bc\u03bf \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1 \u03c0\u03bf\u03c5 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03ae\u03b4\u03b7 \u03b1\u03bd\u03b1\u03c0\u03c4\u03cd\u03be\u03b5\u03b9 \u03c3\u03b5 \u03ac\u03bb\u03bb\u03b1 \u03c0\u03c1\u03bf\u03b3\u03c1\u03ac\u03bc\u03bc\u03b1\u03c4\u03b1 \u03b5\u03af\u03bd\u03b1\u03b9 \u03bd\u03b1 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03bf\u03c5\u03bc\u03b5\u00a0\u03c4\u03b9\u03c2 \u03c4\u03b5\u03c7\u03bd\u03b9\u03ba\u03ad\u03c2 \u03c4\u03bf\u03c5 \u03b1\u03bd\u03c4\u03b9\u03ba\u03b5\u03b9\u03bc\u03b5\u03bd\u03bf\u03c3\u03c4\u03c1\u03b5\u03c6\u03bf\u03cd\u03c2 \u03c0\u03c1\u03bf\u03b3\u03c1\u03b1\u03bc\u03bc\u03b1\u03c4\u03b9\u03c3\u03bc\u03bf\u03cd (OOP &#8211; Object Oriented Programming).<\/p>\n<p> <a class=\"continue-reading-link\" href=\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/\"><span>\u0394\u0399\u0391\u0392\u0391\u03a3\u03a4\u0395 \u03a4\u0397 \u03a3\u03a5\u039d\u0395\u03a7\u0395\u0399\u0391<\/span><i class=\"crycon-right-dir\"><\/i><\/a> <\/p>\n","protected":false},"author":1,"featured_media":285,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[8],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Code ReUse 3 - OOP - \u03ba\u03cd\u03c1\u03b9\u03b5 \u03b4\u03b5\u03bd \u03ad\u03c7\u03c9 internet<\/title>\n<meta name=\"description\" content=\"\u039c\u03af\u03b1 \u03ac\u03bb\u03bb\u03b7 \u03c0\u03c1\u03bf\u03c3\u03ad\u03b3\u03b3\u03b9\u03c3\u03b7 \u03bb\u03bf\u03b9\u03c0\u03cc\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03b4\u03b9\u03b1\u03b8\u03ad\u03c3\u03b9\u03bc\u03bf \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1 \u03c0\u03bf\u03c5 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03ae\u03b4\u03b7 \u03b1\u03bd\u03b1\u03c0\u03c4\u03cd\u03be\u03b5\u03b9 \u03c3\u03b5 \u03ac\u03bb\u03bb\u03b1 \u03c0\u03c1\u03bf\u03b3\u03c1\u03ac\u03bc\u03bc\u03b1\u03c4\u03b1 \u03b5\u03af\u03bd\u03b1\u03b9 \u03bd\u03b1 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03bf\u03c5\u03bc\u03b5\u00a0\u03c4\u03b9\u03c2 \u03c4\u03b5\u03c7\u03bd\u03b9\u03ba\u03ad\u03c2 \u03c4\u03bf\u03c5 \u03b1\u03bd\u03c4\u03b9\u03ba\u03b5\u03b9\u03bc\u03b5\u03bd\u03bf\u03c3\u03c4\u03c1\u03b5\u03c6\u03bf\u03cd\u03c2 \u03c0\u03c1\u03bf\u03b3\u03c1\u03b1\u03bc\u03bc\u03b1\u03c4\u03b9\u03c3\u03bc\u03bf\u03cd (OOP - Object Oriented Programming).\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Code ReUse 3 - OOP - \u03ba\u03cd\u03c1\u03b9\u03b5 \u03b4\u03b5\u03bd \u03ad\u03c7\u03c9 internet\" \/>\n<meta property=\"og:description\" content=\"\u039c\u03af\u03b1 \u03ac\u03bb\u03bb\u03b7 \u03c0\u03c1\u03bf\u03c3\u03ad\u03b3\u03b3\u03b9\u03c3\u03b7 \u03bb\u03bf\u03b9\u03c0\u03cc\u03bd \u03b5\u03af\u03bd\u03b1\u03b9 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03b4\u03b9\u03b1\u03b8\u03ad\u03c3\u03b9\u03bc\u03bf \u03ba\u03ce\u03b4\u03b9\u03ba\u03b1 \u03c0\u03bf\u03c5 \u03ad\u03c7\u03bf\u03c5\u03bc\u03b5 \u03ae\u03b4\u03b7 \u03b1\u03bd\u03b1\u03c0\u03c4\u03cd\u03be\u03b5\u03b9 \u03c3\u03b5 \u03ac\u03bb\u03bb\u03b1 \u03c0\u03c1\u03bf\u03b3\u03c1\u03ac\u03bc\u03bc\u03b1\u03c4\u03b1 \u03b5\u03af\u03bd\u03b1\u03b9 \u03bd\u03b1 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03bf\u03c5\u03bc\u03b5\u00a0\u03c4\u03b9\u03c2 \u03c4\u03b5\u03c7\u03bd\u03b9\u03ba\u03ad\u03c2 \u03c4\u03bf\u03c5 \u03b1\u03bd\u03c4\u03b9\u03ba\u03b5\u03b9\u03bc\u03b5\u03bd\u03bf\u03c3\u03c4\u03c1\u03b5\u03c6\u03bf\u03cd\u03c2 \u03c0\u03c1\u03bf\u03b3\u03c1\u03b1\u03bc\u03bc\u03b1\u03c4\u03b9\u03c3\u03bc\u03bf\u03cd (OOP - Object Oriented Programming).\" \/>\n<meta property=\"og:url\" content=\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/\" \/>\n<meta property=\"og:site_name\" content=\"\u03ba\u03cd\u03c1\u03b9\u03b5 \u03b4\u03b5\u03bd \u03ad\u03c7\u03c9 internet\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-09T08:35:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-26T20:17:12+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/users.sch.gr\/chatzipap\/wp-content\/uploads\/2018\/03\/children-text_output_object-computer_language-parent-parenting-computing-mmon109_low.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"945\" \/>\n\t<meta property=\"og:image:height\" content=\"402\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/#website\",\"url\":\"http:\/\/users.sch.gr\/chatzipap\/\",\"name\":\"\\u03ba\\u03cd\\u03c1\\u03b9\\u03b5 \\u03b4\\u03b5\\u03bd \\u03ad\\u03c7\\u03c9 internet\",\"description\":\"\\u0391\\u03bd\\u03b1\\u03c3\\u03c4\\u03ac\\u03c3\\u03b9\\u03bf\\u03c2 \\u03a7\\u03b1\\u03c4\\u03b6\\u03b7\\u03c0\\u03b1\\u03c0\\u03b1\\u03b4\\u03cc\\u03c0\\u03bf\\u03c5\\u03bb\\u03bf\\u03c2\",\"publisher\":{\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/#\/schema\/person\/bcd297efd76b38bf6c373530ffa82629\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/users.sch.gr\/chatzipap\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/users.sch.gr\/chatzipap\/wp-content\/uploads\/2018\/03\/children-text_output_object-computer_language-parent-parenting-computing-mmon109_low.jpg\",\"contentUrl\":\"http:\/\/users.sch.gr\/chatzipap\/wp-content\/uploads\/2018\/03\/children-text_output_object-computer_language-parent-parenting-computing-mmon109_low.jpg\",\"width\":945,\"height\":402,\"caption\":\"\\\"Look. He's just created his first text output object.\\\"\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/#webpage\",\"url\":\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/\",\"name\":\"Code ReUse 3 - OOP - \\u03ba\\u03cd\\u03c1\\u03b9\\u03b5 \\u03b4\\u03b5\\u03bd \\u03ad\\u03c7\\u03c9 internet\",\"isPartOf\":{\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/#primaryimage\"},\"datePublished\":\"2018-03-09T08:35:44+00:00\",\"dateModified\":\"2018-03-26T20:17:12+00:00\",\"description\":\"\\u039c\\u03af\\u03b1 \\u03ac\\u03bb\\u03bb\\u03b7 \\u03c0\\u03c1\\u03bf\\u03c3\\u03ad\\u03b3\\u03b3\\u03b9\\u03c3\\u03b7 \\u03bb\\u03bf\\u03b9\\u03c0\\u03cc\\u03bd \\u03b5\\u03af\\u03bd\\u03b1\\u03b9 \\u03b3\\u03b9\\u03b1 \\u03bd\\u03b1 \\u03ad\\u03c7\\u03bf\\u03c5\\u03bc\\u03b5 \\u03b4\\u03b9\\u03b1\\u03b8\\u03ad\\u03c3\\u03b9\\u03bc\\u03bf \\u03ba\\u03ce\\u03b4\\u03b9\\u03ba\\u03b1 \\u03c0\\u03bf\\u03c5 \\u03ad\\u03c7\\u03bf\\u03c5\\u03bc\\u03b5 \\u03ae\\u03b4\\u03b7 \\u03b1\\u03bd\\u03b1\\u03c0\\u03c4\\u03cd\\u03be\\u03b5\\u03b9 \\u03c3\\u03b5 \\u03ac\\u03bb\\u03bb\\u03b1 \\u03c0\\u03c1\\u03bf\\u03b3\\u03c1\\u03ac\\u03bc\\u03bc\\u03b1\\u03c4\\u03b1 \\u03b5\\u03af\\u03bd\\u03b1\\u03b9 \\u03bd\\u03b1 \\u03c7\\u03c1\\u03b7\\u03c3\\u03b9\\u03bc\\u03bf\\u03c0\\u03bf\\u03b9\\u03ae\\u03c3\\u03bf\\u03c5\\u03bc\\u03b5\\u00a0\\u03c4\\u03b9\\u03c2 \\u03c4\\u03b5\\u03c7\\u03bd\\u03b9\\u03ba\\u03ad\\u03c2 \\u03c4\\u03bf\\u03c5 \\u03b1\\u03bd\\u03c4\\u03b9\\u03ba\\u03b5\\u03b9\\u03bc\\u03b5\\u03bd\\u03bf\\u03c3\\u03c4\\u03c1\\u03b5\\u03c6\\u03bf\\u03cd\\u03c2 \\u03c0\\u03c1\\u03bf\\u03b3\\u03c1\\u03b1\\u03bc\\u03bc\\u03b1\\u03c4\\u03b9\\u03c3\\u03bc\\u03bf\\u03cd (OOP - Object Oriented Programming).\",\"breadcrumb\":{\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/users.sch.gr\/chatzipap\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Code ReUse 3 &#8211; OOP\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/#webpage\"},\"author\":{\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/#\/schema\/person\/bcd297efd76b38bf6c373530ffa82629\"},\"headline\":\"Code ReUse 3 &#8211; OOP\",\"datePublished\":\"2018-03-09T08:35:44+00:00\",\"dateModified\":\"2018-03-26T20:17:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/#webpage\"},\"wordCount\":35,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/#\/schema\/person\/bcd297efd76b38bf6c373530ffa82629\"},\"image\":{\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/users.sch.gr\/chatzipap\/wp-content\/uploads\/2018\/03\/children-text_output_object-computer_language-parent-parenting-computing-mmon109_low.jpg\",\"articleSection\":[\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/users.sch.gr\/chatzipap\/code_reuse_oop\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/#\/schema\/person\/bcd297efd76b38bf6c373530ffa82629\",\"name\":\"chatzipap\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/318bb065459b1f5c47df938d14d585a7?s=96&d=mm&r=g\",\"contentUrl\":\"http:\/\/0.gravatar.com\/avatar\/318bb065459b1f5c47df938d14d585a7?s=96&d=mm&r=g\",\"caption\":\"chatzipap\"},\"logo\":{\"@id\":\"http:\/\/users.sch.gr\/chatzipap\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/users.sch.gr\/chatzipap\/wp-json\/wp\/v2\/posts\/276"}],"collection":[{"href":"http:\/\/users.sch.gr\/chatzipap\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/users.sch.gr\/chatzipap\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/users.sch.gr\/chatzipap\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/users.sch.gr\/chatzipap\/wp-json\/wp\/v2\/comments?post=276"}],"version-history":[{"count":0,"href":"http:\/\/users.sch.gr\/chatzipap\/wp-json\/wp\/v2\/posts\/276\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/users.sch.gr\/chatzipap\/wp-json\/wp\/v2\/media\/285"}],"wp:attachment":[{"href":"http:\/\/users.sch.gr\/chatzipap\/wp-json\/wp\/v2\/media?parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/users.sch.gr\/chatzipap\/wp-json\/wp\/v2\/categories?post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/users.sch.gr\/chatzipap\/wp-json\/wp\/v2\/tags?post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}