{"id":4858,"date":"2017-10-21T08:26:53","date_gmt":"2017-10-21T08:26:53","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=4858"},"modified":"2024-09-04T06:59:02","modified_gmt":"2024-09-04T06:59:02","slug":"what-are-the-oop-basic-concepts","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/what-are-the-oop-basic-concepts\/","title":{"rendered":"What are the OOP Basic Concepts"},"content":{"rendered":"<h2>What are the OOP Basic Concepts<\/h2>\n<p>The basic concepts and terminology associated with object-oriented programming language are as follows:<\/p>\n<h3>Class<\/h3>\n<p>Class is a template or blue-pint for the object. The class defines the properties and behavior of the object.<\/p>\n<h3>Object<\/h3>\n<p>The object is an instance of the class. It is a basic unit of an object-oriented program.<\/p>\n<h3>Abstraction<\/h3>\n<p>Abstraction is hiding implementation details or managing complexity at the system level.<\/p>\n<h3>Encapsulation<\/h3>\n<p>Encapsulation is the binding of data and the methods that operate on the data. Encapsulation acts like a protective shield that prevents code and data from outside interference.<\/p>\n<h3>Inheritance<\/h3>\n<p>Inheritance defines a child&#8217;s class from the parent class. The main purpose of inheritance is code reusability. Inheritance is that\u00a0 child class acquires or inherits state and behavior from the parent class<\/p>\n<h3>Polymorphism<\/h3>\n<p>Polymorphism is the ability to take many different forms. For example, child classes can have a same method as the parent class but can provide different method implementations by overriding the method.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What are the OOP Basic Concepts The basic concepts and terminology associated with object-oriented programming language are as follows: Class Class is a template or blue-pint for the object. The class defines the properties and behavior of the object. Object The object is an instance of the class. It is a basic unit of an [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[],"class_list":["post-4858","post","type-post","status-publish","format-standard","hentry","category-java","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=4858"}],"version-history":[{"count":5,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4858\/revisions"}],"predecessor-version":[{"id":24010,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/4858\/revisions\/24010"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=4858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=4858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=4858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}