{"id":9208,"date":"2022-04-29T10:20:16","date_gmt":"2022-04-29T08:20:16","guid":{"rendered":"https:\/\/www.vita.sk\/?post_type=product&#038;p=9208"},"modified":"2026-10-23T18:34:58","modified_gmt":"2026-10-23T16:34:58","slug":"online-kurz-python-objektove-programovanie","status":"publish","type":"product","link":"https:\/\/www.vita.sk\/cs\/online-kurz-python-objektove-programovanie\/","title":{"rendered":"Online kurz Python &#8211; Objektov\u00e9 Programovanie"},"content":{"rendered":"<p>Online kurz Python \u2013 Objektov\u00e9 Programovanie v\u00e1s nau\u010d\u00ed navrhova\u0165 triedy, vytv\u00e1ra\u0165 objekty a prep\u00e1ja\u0165 ich do zrozumite\u013enej \u0161trukt\u00fary programu. <strong>Ide o certifikovan\u00fd online kurz na objektovo orientovan\u00e9 programovanie v Pythone.<\/strong> Nadvia\u017eeme na znalos\u0165 premenn\u00fdch, podmienok, cyklov a funkci\u00ed, aby sme sa mohli s\u00fastredi\u0165 na n\u00e1vrh objektov a ich spolupr\u00e1cu. Za\u010dneme rozdielom medzi triedou a jej in\u0161tanciou a vysvetl\u00edme si, ako objekt sp\u00e1ja \u00fadaje so spr\u00e1van\u00edm. Pomocou kompoz\u00edcie budeme zostavova\u0165 zlo\u017eitej\u0161ie rie\u0161enia z men\u0161\u00edch spolupracuj\u00facich \u010dast\u00ed. Nau\u010d\u00edme sa pracova\u0165 s atrib\u00fatmi, inicializova\u0165 stav objektu pomocou __init__ a porozumie\u0165 z\u00e1kladom jeho \u017eivotn\u00e9ho cyklu. Zorientujeme sa aj v prostred\u00ed Anaconda Navigator a pr\u00e1ci s kni\u017enicami.<\/p>\n<p>&nbsp;<\/p>\n<p>\u010ealej rozl\u00ed\u0161ime in\u0161tan\u010dn\u00e9, triedne a statick\u00e9 met\u00f3dy a uk\u00e1\u017eeme si, kedy ktor\u00fd sp\u00f4sob pou\u017ei\u0165. Pri triednych premenn\u00fdch vysvetl\u00edme rozdiel medzi \u00fadajmi spolo\u010dn\u00fdmi pre triedu a stavom jednotliv\u00fdch objektov. Pomocou property vytvor\u00edme vlastnosti, cez ktor\u00e9 m\u00f4\u017eeme riadi\u0165 \u010d\u00edtanie a zmenu hodn\u00f4t. Prejdeme k duck typingu, pri ktorom je d\u00f4le\u017eit\u00e9 podporovan\u00e9 spr\u00e1vanie objektu, a obozn\u00e1mime sa s ukladan\u00edm opakovane vyu\u017e\u00edvan\u00fdch v\u00fdsledkov do vyrovn\u00e1vacej pam\u00e4te. N\u00e1vrh programu podpor\u00edme UML diagramami tried a modelovan\u00edm vz\u0165ahov v n\u00e1stroji StarUML. Prepoj\u00edme grafick\u00fd model s implement\u00e1ciou v Pythone, aby sme vedeli vysvetli\u0165 zodpovednos\u0165 jednotliv\u00fdch tried a ich vz\u00e1jomn\u00e9 v\u00e4zby.<\/p>\n<p>&nbsp;<\/p>\n<p>V \u010fal\u0161ej \u010dasti sa zameriame na abstraktn\u00e9 triedy, dedi\u010dnos\u0165 a polymorfizmus. Pomocou modulu abc vyjadr\u00edme spolo\u010dn\u00e9 po\u017eiadavky na odvoden\u00e9 triedy. Pri dedi\u010dnosti vyu\u017eijeme super() a vysvetl\u00edme si aj spolupr\u00e1cu tried pri viacn\u00e1sobnej dedi\u010dnosti. Nadvia\u017eeme iter\u00e1tormi a spracovan\u00edm v\u00fdnimiek v objektovom n\u00e1vrhu. Pri zap\u00fazdren\u00ed rozl\u00ed\u0161ime verejn\u00e9 rozhranie od intern\u00fdch detailov a objasn\u00edme v\u00fdznam pomenovania atrib\u00fatov s pod\u010diarkovn\u00edkmi. Z\u00e1ver venujeme typov\u00fdm anot\u00e1ci\u00e1m a generick\u00fdm typom, ktor\u00e9 pom\u00e1haj\u00fa dokumentova\u0165 o\u010dak\u00e1van\u00e9 hodnoty a podporuj\u00fa n\u00e1stroje na statick\u00fa kontrolu. Z\u00edskan\u00e9 postupy vyu\u017eijeme pri roz\u0161irovan\u00ed skriptov, n\u00e1vrhu vlastn\u00fdch kni\u017en\u00edc aj \u00faprave existuj\u00faceho k\u00f3du. Budeme vedie\u0165 lep\u0161ie rozdeli\u0165 program na \u010dasti, ktor\u00fdch \u00fa\u010del a vz\u0165ahy dok\u00e1\u017eeme pomenova\u0165. Ak sa chcete skuto\u010dne nau\u010di\u0165 objektovo orientovan\u00e9 programovanie v Pythone a navrhova\u0165 preh\u013eadn\u00e9 triedy a ich spolupr\u00e1cu, tak toto je ide\u00e1lny online kurz pre v\u00e1s.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Online kurz Python \u2013 Objektov\u00e9 Programovanie v\u00e1s nau\u010d\u00ed navrhova\u0165 aplik\u00e1cie pomocou princ\u00edpov OOP, pracova\u0165 s triedami, dedi\u010dnos\u0165ou, polymorfizmom, zap\u00fazdren\u00edm a vytv\u00e1ra\u0165 preh\u013eadn\u00fa architekt\u00faru softv\u00e9ru v jazyku Python.","protected":false},"author":4,"featured_media":9906,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false},"product_brand":[],"product_cat":[106,99,131,73],"product_tag":[422,1240,1528,1531,1817,1818,1819,1821,2014,2015,189,212],"class_list":{"0":"post-9208","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-online-kurzy-python","7":"product_cat-online-kurzy-programovacie-jazyky","8":"product_cat-online-kurzy-programovanie","9":"product_cat-bez-kategorie","10":"product_tag-python-objektove-programovanie","11":"product_tag-uml","12":"product_tag-dedicnost","13":"product_tag-zapuzdrenie","14":"product_tag-objektove-programovanie","15":"product_tag-oop","16":"product_tag-triedy-a-objekty","17":"product_tag-polymorfizmus","18":"product_tag-kompozicia","19":"product_tag-typove-anotacie","20":"product_tag-programovacie-jazyky","21":"product_tag-python","23":"first","24":"instock","25":"sale","26":"virtual","27":"sold-individually","28":"taxable","29":"purchasable","30":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.0 (Yoast SEO v25.0) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Online kurz Python - Objektov\u00e9 Programovanie 2026 | VITA<\/title>\n<meta name=\"description\" content=\"Online kurz Python \u2013 Objektov\u00e9 Programovanie v\u00e1s nau\u010d\u00ed navrhova\u0165 triedy, pou\u017e\u00edva\u0165 dedi\u010dnos\u0165, kompoz\u00edciu, polymorfizmus, UML a typov\u00e9 anot\u00e1cie. \u2705\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Online kurz Python - Objektov\u00e9 Programovanie\" \/>\n<meta property=\"og:description\" content=\"Online kurz Python \u2013 Objektov\u00e9 Programovanie v\u00e1s nau\u010d\u00ed navrhova\u0165 triedy, pou\u017e\u00edva\u0165 dedi\u010dnos\u0165, kompoz\u00edciu, polymorfizmus, UML a typov\u00e9 anot\u00e1cie. \u2705\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/\" \/>\n<meta property=\"og:site_name\" content=\"VITA\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/VitaAcademySK\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-23T16:34:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vita.sk\/wp-content\/uploads\/2022\/05\/online-kurz-Python-Objektove-Programovanie.png\" \/>\n\t<meta property=\"og:image:width\" content=\"360\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Odhadovan\u00e1 doba \u010dten\u00ed\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\/\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/\",\n\t            \"url\": \"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/\",\n\t            \"name\": \"Online kurz Python - Objektov\u00e9 Programovanie {Y} | VITA\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\/\/www.vita.sk\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\/\/www.vita.sk\/wp-content\/uploads\/2022\/05\/online-kurz-Python-Objektove-Programovanie.png\",\n\t            \"datePublished\": \"2022-04-29T08:20:16+00:00\",\n\t            \"dateModified\": \"2026-10-23T16:34:58+00:00\",\n\t            \"description\": \"Online kurz Python \u2013 Objektov\u00e9 Programovanie v\u00e1s nau\u010d\u00ed navrhova\u0165 triedy, pou\u017e\u00edva\u0165 dedi\u010dnos\u0165, kompoz\u00edciu, polymorfizmus, UML a typov\u00e9 anot\u00e1cie. \u2705\",\n\t            \"breadcrumb\": {\n\t                \"@id\": \"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/#breadcrumb\"\n\t            },\n\t            \"inLanguage\": \"cs\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"cs\",\n\t            \"@id\": \"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/#primaryimage\",\n\t            \"url\": \"https:\/\/www.vita.sk\/wp-content\/uploads\/2022\/05\/online-kurz-Python-Objektove-Programovanie.png\",\n\t            \"contentUrl\": \"https:\/\/www.vita.sk\/wp-content\/uploads\/2022\/05\/online-kurz-Python-Objektove-Programovanie.png\",\n\t            \"width\": 360,\n\t            \"height\": 360,\n\t            \"caption\": \"Online kurz Python \u2013 Objektov\u00e9 Programovanie \u2013 triedy, objekty, dedi\u010dnos\u0165 a kompoz\u00edcia\"\n\t        },\n\t        {\n\t            \"@type\": \"BreadcrumbList\",\n\t            \"@id\": \"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/#breadcrumb\",\n\t            \"itemListElement\": [\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 1,\n\t                    \"name\": \"VITA Academy\",\n\t                    \"item\": \"https:\/\/www.vita.sk\/cs\/\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 2,\n\t                    \"name\": \"Shop\",\n\t                    \"item\": \"https:\/\/www.vita.sk\/shop\/\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 3,\n\t                    \"name\": \"Programovanie a V\u00fdvoj Softv\u00e9ru\",\n\t                    \"item\": \"https:\/\/www.vita.sk\/online-kurzy-programovacie-jazyky\/\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 4,\n\t                    \"name\": \"Python\",\n\t                    \"item\": \"https:\/\/www.vita.sk\/online-kurzy-python\/\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 5,\n\t                    \"name\": \"Online kurz Python &#8211; Objektov\u00e9 Programovanie\"\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\/\/www.vita.sk\/#website\",\n\t            \"url\": \"https:\/\/www.vita.sk\/\",\n\t            \"name\": \"VITA Academy - Online Kurzy a \u0160kolenia\",\n\t            \"description\": \"\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\/\/www.vita.sk\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\/\/www.vita.sk\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"cs\"\n\t        },\n\t        {\n\t            \"email\": \"admin@vita.sk\",\n\t            \"logo\": \"https:\/\/www.vita.sk\/img\/vita_logo.png \",\n\t            \"address\": {\n\t                \"type\": \"PostalAddress\",\n\t                \"streetAddress\": \"Tom\u00e1\u0161ikova 50\/A\",\n\t                \"addressLocality\": \"Bratislava\",\n\t                \"postalCode\": \"83104\",\n\t                \"addressCountry\": {\n\t                    \"name\": \"SK\",\n\t                    \"type\": \"Country\"\n\t                }\n\t            },\n\t            \"contactPoint\": {\n\t                \"type\": \"ContactPoint\",\n\t                \"telephone\": \"+421 907 375\u00a0543\",\n\t                \"Email\": \"admin@vita.sk\",\n\t                \"contactType\": \"customer service\"\n\t            },\n\t            \"sameAs\": [\n\t                \"https:\/\/www.facebook.com\/VitaAcademySK\/\",\n\t                \"https:\/\/www.linkedin.com\/company\/vita-academy\/\"\n\t            ]\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Online kurz Python - Objektov\u00e9 Programovanie 2026 | VITA","description":"Online kurz Python \u2013 Objektov\u00e9 Programovanie v\u00e1s nau\u010d\u00ed navrhova\u0165 triedy, pou\u017e\u00edva\u0165 dedi\u010dnos\u0165, kompoz\u00edciu, polymorfizmus, UML a typov\u00e9 anot\u00e1cie. \u2705","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/","og_locale":"cs_CZ","og_type":"article","og_title":"Online kurz Python - Objektov\u00e9 Programovanie","og_description":"Online kurz Python \u2013 Objektov\u00e9 Programovanie v\u00e1s nau\u010d\u00ed navrhova\u0165 triedy, pou\u017e\u00edva\u0165 dedi\u010dnos\u0165, kompoz\u00edciu, polymorfizmus, UML a typov\u00e9 anot\u00e1cie. \u2705","og_url":"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/","og_site_name":"VITA","article_publisher":"https:\/\/www.facebook.com\/VitaAcademySK","article_modified_time":"2026-10-23T16:34:58+00:00","og_image":[{"width":360,"height":360,"url":"https:\/\/www.vita.sk\/wp-content\/uploads\/2022\/05\/online-kurz-Python-Objektove-Programovanie.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"Odhadovan\u00e1 doba \u010dten\u00ed":"2 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/","url":"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/","name":"Online kurz Python - Objektov\u00e9 Programovanie {Y} | VITA","isPartOf":{"@id":"https:\/\/www.vita.sk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/#primaryimage"},"image":{"@id":"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vita.sk\/wp-content\/uploads\/2022\/05\/online-kurz-Python-Objektove-Programovanie.png","datePublished":"2022-04-29T08:20:16+00:00","dateModified":"2026-10-23T16:34:58+00:00","description":"Online kurz Python \u2013 Objektov\u00e9 Programovanie v\u00e1s nau\u010d\u00ed navrhova\u0165 triedy, pou\u017e\u00edva\u0165 dedi\u010dnos\u0165, kompoz\u00edciu, polymorfizmus, UML a typov\u00e9 anot\u00e1cie. \u2705","breadcrumb":{"@id":"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/"]}]},{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/#primaryimage","url":"https:\/\/www.vita.sk\/wp-content\/uploads\/2022\/05\/online-kurz-Python-Objektove-Programovanie.png","contentUrl":"https:\/\/www.vita.sk\/wp-content\/uploads\/2022\/05\/online-kurz-Python-Objektove-Programovanie.png","width":360,"height":360,"caption":"Online kurz Python \u2013 Objektov\u00e9 Programovanie \u2013 triedy, objekty, dedi\u010dnos\u0165 a kompoz\u00edcia"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vita.sk\/online-kurz-python-objektove-programovanie\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"VITA Academy","item":"https:\/\/www.vita.sk\/cs\/"},{"@type":"ListItem","position":2,"name":"Shop","item":"https:\/\/www.vita.sk\/shop\/"},{"@type":"ListItem","position":3,"name":"Programovanie a V\u00fdvoj Softv\u00e9ru","item":"https:\/\/www.vita.sk\/online-kurzy-programovacie-jazyky\/"},{"@type":"ListItem","position":4,"name":"Python","item":"https:\/\/www.vita.sk\/online-kurzy-python\/"},{"@type":"ListItem","position":5,"name":"Online kurz Python &#8211; Objektov\u00e9 Programovanie"}]},{"@type":"WebSite","@id":"https:\/\/www.vita.sk\/#website","url":"https:\/\/www.vita.sk\/","name":"VITA Academy - Online Kurzy a \u0160kolenia","description":"","publisher":{"@id":"https:\/\/www.vita.sk\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vita.sk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"cs"},{"email":"admin@vita.sk","logo":"https:\/\/www.vita.sk\/img\/vita_logo.png ","address":{"type":"PostalAddress","streetAddress":"Tom\u00e1\u0161ikova 50\/A","addressLocality":"Bratislava","postalCode":"83104","addressCountry":{"name":"SK","type":"Country"}},"contactPoint":{"type":"ContactPoint","telephone":"+421 907 375\u00a0543","Email":"admin@vita.sk","contactType":"customer service"},"sameAs":["https:\/\/www.facebook.com\/VitaAcademySK\/","https:\/\/www.linkedin.com\/company\/vita-academy\/"]}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/www.vita.sk\/cs\/wp-json\/wp\/v2\/product\/9208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vita.sk\/cs\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.vita.sk\/cs\/wp-json\/wp\/v2\/types\/product"}],"author":[{"embeddable":true,"href":"https:\/\/www.vita.sk\/cs\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vita.sk\/cs\/wp-json\/wp\/v2\/comments?post=9208"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vita.sk\/cs\/wp-json\/wp\/v2\/media\/9906"}],"wp:attachment":[{"href":"https:\/\/www.vita.sk\/cs\/wp-json\/wp\/v2\/media?parent=9208"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.vita.sk\/cs\/wp-json\/wp\/v2\/product_brand?post=9208"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.vita.sk\/cs\/wp-json\/wp\/v2\/product_cat?post=9208"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.vita.sk\/cs\/wp-json\/wp\/v2\/product_tag?post=9208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}