{"id":602,"date":"2016-12-01T12:17:06","date_gmt":"2016-12-01T20:17:06","guid":{"rendered":"http:\/\/www.tech.dimprash.com\/?p=602"},"modified":"2016-12-01T12:17:06","modified_gmt":"2016-12-01T20:17:06","slug":"traits-vs-interfaces","status":"publish","type":"post","link":"http:\/\/www.tech.dimprash.com\/?p=602","title":{"rendered":"Traits vs Interfaces"},"content":{"rendered":"<p>Interfaces :  An interface defines a set of methods that the implementing class must implement.<\/p>\n<p>Trait : When a trait is use&#8217;d the implementations of the methods come along too&#8211;which doesn&#8217;t happen in an Interface.<\/p>\n<p>http:\/\/stackoverflow.com\/questions\/9205083\/traits-vs-interfaces<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Interfaces : An interface defines a set of methods that the implementing class must implement. Trait : When a trait is use&#8217;d the implementations of the methods come along too&#8211;which doesn&#8217;t happen in an Interface. http:\/\/stackoverflow.com\/questions\/9205083\/traits-vs-interfaces<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-602","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=602"}],"version-history":[{"count":1,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/602\/revisions"}],"predecessor-version":[{"id":603,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/602\/revisions\/603"}],"wp:attachment":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}