{"id":13043,"date":"2021-12-11T14:20:31","date_gmt":"2021-12-11T14:20:31","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=13043"},"modified":"2021-12-11T14:21:09","modified_gmt":"2021-12-11T14:21:09","slug":"what-does-the-following-method-do-give-example","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/what-does-the-following-method-do-give-example\/29946.html","title":{"rendered":"What Does The Following Method Do? Give Example"},"content":{"rendered":"<p>What does the following method do? Give an example of how you can cal lthe method.<br \/>\npublic class BankAccount {<br \/>\npublic void mystery(BankAccount that, double amount) {<br \/>\nthis.balance = this.balance &#8211; amount;<br \/>\nthat.balance = that.balance + amount; }<br \/>\n. . . \/\/ Other bank account methods }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":5},"question-category":[55],"question_tags":[],"class_list":["post-13043","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/13043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=13043"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=13043"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=13043"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=13043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}