{"id":233,"date":"2007-11-08T07:20:00","date_gmt":"2007-11-08T09:20:00","guid":{"rendered":"http:\/\/helbertt.16mb.com\/site\/index.php\/2007\/11\/08\/leite-adulterado-java-nele\/"},"modified":"2007-11-08T07:20:00","modified_gmt":"2007-11-08T09:20:00","slug":"leite-adulterado-java-nele","status":"publish","type":"post","link":"https:\/\/helbertt.xyz\/site\/leite-adulterado-java-nele\/","title":{"rendered":"Leite Adulterado? Java Nele!!"},"content":{"rendered":"<p>Vc n\u00e3o quer mais que adulterem o leite!? H\u00e1 uma solu\u00e7\u00e3o java, veja:<\/p>\n<\/p>\n<blockquote><p><span><br \/><\/span><span style=\"color: rgb(51, 51, 255);\">\/\/ Altere seu c\u00f3digo de<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p><\/span><span style=\"color: rgb(51, 51, 255);\">Public<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">class<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">Leite<\/span><span style=\"color: rgb(51, 51, 255);\">{<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p><\/span><span style=\"color: rgb(51, 51, 255);\">private<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">Set<\/span><span style=\"color: rgb(51, 51, 255);\"> ingredientes<\/span><span style=\"color: rgb(51, 51, 255);\">;<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/><\/span><span style=\"color: rgb(51, 51, 255);\">public<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">Set<\/span><span style=\"color: rgb(51, 51, 255);\"> getIngredientes<\/span><span style=\"color: rgb(51, 51, 255);\">()<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">{<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/>                 <\/span><span style=\"color: rgb(51, 51, 255);\">return<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">this<\/span><span style=\"color: rgb(51, 51, 255);\">.<\/span><span style=\"color: rgb(51, 51, 255);\">ingredientes<\/span><span style=\"color: rgb(51, 51, 255);\">;<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/><\/span><span style=\"color: rgb(51, 51, 255);\">{<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p><\/span><span style=\"color: rgb(51, 51, 255);\">}<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p><\/span><span style=\"color: rgb(51, 51, 255);\">\/\/ Para esse novo c\u00f3digo<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p>       <\/span><span style=\"color: rgb(51, 51, 255);\">public<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">final<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">class<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">Leite<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">{<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p><\/span><span style=\"color: rgb(51, 51, 255);\">\/\/Leite \u00e9 leite, n\u00e3o existe esse negocio de<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/><\/span><span style=\"color: rgb(51, 51, 255);\">\/\/LeiteComSoda extends Leite<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p><\/span><span style=\"color: rgb(51, 51, 255);\">\/**<br \/>* Obs.: bem que meu professor de JAVA falou<br \/>* que esse negocio de heranca \u00e9 uma droga<br \/>* tire todo esse c\u00f3digo de ingredientes<br \/>* voc\u00ea quer \u00e9 leite e n\u00e3o uma mistura de agua,<br \/>* agua oxigenada, soda caustica, etc &#8230;<br \/>*\/<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/><\/span><span style=\"color: rgb(51, 51, 255);\">}<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p><\/span><span style=\"color: rgb(51, 51, 255);\">\/\/ N\u00e3o se esque\u00e7a de fazer tambem:<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p><\/span><span style=\"color: rgb(51, 51, 255);\">public<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">class<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">final<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">class<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">Leite<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">implements<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">NaoLetalAoSerHumano<\/span><span style=\"color: rgb(51, 51, 255);\">{<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/>         <\/span><span style=\"color: rgb(51, 51, 255);\">&#8230;<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/><\/span><span style=\"color: rgb(51, 51, 255);\">}<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p>         <\/span><span style=\"color: rgb(51, 51, 255);\">\/\/ Agora veja um c\u00f3digo malicioso de latic\u00ednio que<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/>        <\/span><span style=\"color: rgb(51, 51, 255);\">\/\/  funcionava na primeira vers\u00e3o<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p><\/span><span style=\"color: rgb(51, 51, 255);\">public<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">class<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">LeiteFactory<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">{<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/>      <\/span><span style=\"color: rgb(51, 51, 255);\">Leite<\/span><span style=\"color: rgb(51, 51, 255);\"> getLeite<\/span><span style=\"color: rgb(51, 51, 255);\">()<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">{<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/>                  <\/span><span style=\"color: rgb(51, 51, 255);\">Leite<\/span><span style=\"color: rgb(51, 51, 255);\"> leite <\/span><span style=\"color: rgb(51, 51, 255);\">=<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">new<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">Leite<\/span><span style=\"color: rgb(51, 51, 255);\">();<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/>                  <\/span><span style=\"color: rgb(51, 51, 255);\">Set<\/span><span style=\"color: rgb(51, 51, 255);\"> ingredientes <\/span><span style=\"color: rgb(51, 51, 255);\">=<\/span><span style=\"color: rgb(51, 51, 255);\"> leite<\/span><span style=\"color: rgb(51, 51, 255);\">.<\/span><span style=\"color: rgb(51, 51, 255);\">getIngredientes<\/span><span style=\"color: rgb(51, 51, 255);\">();<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/>                  ingredientes<\/span><span style=\"color: rgb(51, 51, 255);\">.<\/span><span style=\"color: rgb(51, 51, 255);\">add<\/span><span style=\"color: rgb(51, 51, 255);\">(<\/span><span style=\"color: rgb(51, 51, 255);\">new<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">Agua<\/span><span style=\"color: rgb(51, 51, 255);\">());<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/>                  ingredientes<\/span><span style=\"color: rgb(51, 51, 255);\">.<\/span><span style=\"color: rgb(51, 51, 255);\">add<\/span><span style=\"color: rgb(51, 51, 255);\">(<\/span><span style=\"color: rgb(51, 51, 255);\">new<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">SodaCaustica<\/span><span style=\"color: rgb(51, 51, 255);\">());<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/>                  ingredientes<\/span><span style=\"color: rgb(51, 51, 255);\">.<\/span><span style=\"color: rgb(51, 51, 255);\">add<\/span><span style=\"color: rgb(51, 51, 255);\">(<\/span><span style=\"color: rgb(51, 51, 255);\">new<\/span><span style=\"color: rgb(51, 51, 255);\"> <\/span><span style=\"color: rgb(51, 51, 255);\">AguaOxigenada<\/span><span style=\"color: rgb(51, 51, 255);\">());<\/span><span style=\"color: rgb(51, 51, 255);\"><br \/><\/span><span style=\"color: rgb(51, 51, 255);\">}<\/span><span style=\"color: rgb(51, 51, 255);\"><\/p>\n<p><\/span><span style=\"color: rgb(51, 51, 255);\">}<\/span><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Vc n\u00e3o quer mais que adulterem o leite!? H\u00e1 uma solu\u00e7\u00e3o java, veja: \/\/ Altere seu c\u00f3digo de Public class<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout"},"categories":[107,22],"tags":[],"_links":{"self":[{"href":"https:\/\/helbertt.xyz\/site\/wp-json\/wp\/v2\/posts\/233"}],"collection":[{"href":"https:\/\/helbertt.xyz\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/helbertt.xyz\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/helbertt.xyz\/site\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/helbertt.xyz\/site\/wp-json\/wp\/v2\/comments?post=233"}],"version-history":[{"count":0,"href":"https:\/\/helbertt.xyz\/site\/wp-json\/wp\/v2\/posts\/233\/revisions"}],"wp:attachment":[{"href":"https:\/\/helbertt.xyz\/site\/wp-json\/wp\/v2\/media?parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/helbertt.xyz\/site\/wp-json\/wp\/v2\/categories?post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/helbertt.xyz\/site\/wp-json\/wp\/v2\/tags?post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}