{"id":387,"date":"2007-10-21T00:00:00","date_gmt":"2007-10-21T00:00:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=387"},"modified":"2007-10-21T00:00:00","modified_gmt":"2007-10-21T00:00:00","slug":"Answers to Questions and Exercises: Object-Oriented Programming Concepts","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=387","title":{"rendered":"Answers to Questions and Exercises: Object-Oriented Programming Concepts"},"content":{"rendered":"<p><DIV id=PageTitle>Answers to Questions and Exercises: Object-Oriented Programming Concepts<\/DIV><br \/>\n<BLOCKQUOTE><br \/>\n<H3>Answers to Questions<\/H3><br \/>\n<OL><br \/>\n<LI>Real-world objects contain <STRONG>state<\/STRONG> and <STRONG>behavior<\/STRONG>.<br \/>\n<P><\/P><\/LI><br \/>\n<LI>A software object&#8217;s state is stored in <STRONG>fields<\/STRONG>.<br \/>\n<P><\/P><\/LI><br \/>\n<LI>A software object&#8217;s behavior is exposed through <STRONG>methods<\/STRONG>.<br \/>\n<P><\/P><\/LI><br \/>\n<LI>Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data <STRONG>encapsulation<\/STRONG>.<br \/>\n<P><\/P><\/LI><br \/>\n<LI>A blueprint for a software object is called a <STRONG>class<\/STRONG>.<br \/>\n<P><\/P><\/LI><br \/>\n<LI>Common behavior can be defined in a <STRONG>superclass<\/STRONG> and inherited into a <STRONG>subclass<\/STRONG> using the <STRONG>extends<\/STRONG> keyword.<br \/>\n<P><\/P><\/LI><br \/>\n<LI>A collection of methods with no implementation is called an <STRONG>interface<\/STRONG>.<br \/>\n<P><\/P><\/LI><br \/>\n<LI>A namespace that organizes classes and interfaces by functionality is called a <STRONG>package<\/STRONG>.<br \/>\n<P><\/P><\/LI><br \/>\n<LI>The term API stands for <STRONG>Application Programming Interface<\/STRONG>. <\/LI><\/OL><br \/>\n<H3>Answers to Exercises<\/H3><br \/>\n<OL><br \/>\n<LI>Your answers will vary depending on the real-world objects that you are modeling.<br \/>\n<P><\/P><\/LI><br \/>\n<LI>Your answers will vary here as well, but the error message will specifically list the required methods that have not been implemented. <\/LI><\/OL><\/BLOCKQUOTE><br \/>\n<DIV><\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Answers to Questions and Exercises: Object-Oriented Programming Concepts Answers to Questions Real-world objects contain state and behavior. A software object&#8217;s state is stored in fields. A software object&#8217;s behavior is exposed through methods. Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data encapsulation. A blueprint &hellip; <a href=\"https:\/\/www.strongd.net\/?p=387\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Answers to Questions and Exercises: Object-Oriented Programming Concepts<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-387","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=387"}],"version-history":[{"count":0,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/387\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}