{"id":14734,"date":"2020-06-11T08:55:39","date_gmt":"2020-06-11T08:55:39","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=14734"},"modified":"2021-11-05T06:58:36","modified_gmt":"2021-11-05T06:58:36","slug":"what-is-oops-in-php","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/what-is-oops-in-php\/","title":{"rendered":"What is OOPs? in PHP."},"content":{"rendered":"\n<p>Object-Oriented programming is faster and easier to execute.                               It makes the code easier to maintain.&nbsp;                                                                             This is possible to create full reusable applications with less code<\/p>\n\n\n\n<p><strong>What is Classes<\/strong>:- the collection of object is called class.<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"570\" height=\"270\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-classes-and-objects-1.png\" alt=\"\" data-id=\"14748\" data-full-url=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-classes-and-objects-1.png\" data-link=\"https:\/\/www.devopsschool.com\/blog\/?attachment_id=14748\" class=\"wp-image-14748\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-classes-and-objects-1.png 570w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/06\/php-classes-and-objects-1-300x142.png 300w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p><strong>Example:1<\/strong> -Classes are nothing without an object.    <\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/samcotocus\/d88deabc5e18e829a7b49ccbb657c186.js\"><\/script>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_26528\"><iframe loading=\"lazy\"  id=\"_ytid_55514\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_26528\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Object-Oriented programming is faster and easier to execute. It makes the code easier to maintain.&nbsp; This is possible to create full reusable applications with less code What is Classes:- the&#8230; <\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5150],"tags":[6135],"class_list":["post-14734","post","type-post","status-publish","format-standard","hentry","category-php","tag-what-is-oops"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/14734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=14734"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/14734\/revisions"}],"predecessor-version":[{"id":24773,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/14734\/revisions\/24773"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=14734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=14734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=14734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}