<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>OBJETOS, INICIALIZACIÓN DE UN OBJETO, DESTRUCCIÓN DE UN OBJETO by </title>
      <link>https://padlet.com/72962870/z6z02tu2rrbyj3tv</link>
      <description>Hecho con un aura de misterio</description>
      <language>en-us</language>
      <pubDate>2022-05-30 19:04:53 UTC</pubDate>
      <lastBuildDate>2025-10-21 00:14:30 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/png/1f4bb.png</url>
      </image>
      <item>
         <title>OBJETOS, INICIALIZACIÓN DE UN OBJETO, DESTRUCCIÓN DE UN OBJETO</title>
         <author>74128436</author>
         <link>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2204987991</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2022-05-30 19:10:12 UTC</pubDate>
         <guid>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2204987991</guid>
      </item>
      <item>
         <title>OBJETO</title>
         <author>74128436</author>
         <link>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2204988614</link>
         <description><![CDATA[<div>Es cuando planteamos clases y definimos objetos<br>de las mismas.&nbsp;<br>(Aprender la metodología de programación<br>orientada a objetos y la sintaxis particular de PHP<br>5 para la POO)</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-30 19:11:09 UTC</pubDate>
         <guid>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2204988614</guid>
      </item>
      <item>
         <title>COLABORACION DE OBJETOS</title>
         <author>72962870</author>
         <link>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2204993840</link>
         <description><![CDATA[<div>Cuando uno a trabajado por muchos años con la metodología de programación estructurada es difícil subdividir un problema en clases, tiende a querer plantear una única clase que resuelva todo.</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-30 19:18:45 UTC</pubDate>
         <guid>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2204993840</guid>
      </item>
      <item>
         <title>Destrucción de un Objeto</title>
         <author>76964890</author>
         <link>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2204996172</link>
         <description><![CDATA[<div>El método destructor sera llamado tan pronto como no hayan otras referencias a un objeto determinado(finalizo el script PHP),o en cualquier otra circunstancia de finalizacion (ejecuto la instruccion EXIT($instancia creada))</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-30 19:22:00 UTC</pubDate>
         <guid>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2204996172</guid>
      </item>
      <item>
         <title>Se plantea de esta manera</title>
         <author>72962870</author>
         <link>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2205009309</link>
         <description><![CDATA[<ul><li>Cabecera</li><li>Cuerpo</li><li>Pie</li><li>Pagina</li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-30 19:39:26 UTC</pubDate>
         <guid>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2205009309</guid>
      </item>
      <item>
         <title></title>
         <author>72962870</author>
         <link>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2205012241</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1311495408/c2b1f07d622b706d2a89d63dbd3a3a4f/image.png" />
         <pubDate>2022-05-30 19:43:52 UTC</pubDate>
         <guid>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2205012241</guid>
      </item>
      <item>
         <title></title>
         <author>75471154</author>
         <link>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2205130890</link>
         <description><![CDATA[<div>&lt;!DOCTYPE html&gt;</div><div>&lt;html lang="es"&gt;</div><div>&lt;head&gt;</div><div>&nbsp; &nbsp; &lt;meta charset="UTF-8"&gt;</div><div>&nbsp; &nbsp; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;</div><div>&nbsp; &nbsp; &lt;title&gt;Loteria&lt;/title&gt;</div><div>&lt;/head&gt;</div><div>&lt;body&gt;</div><div>&nbsp; &nbsp; &lt;?php</div><div>&nbsp; &nbsp; &nbsp; &nbsp; class loteria {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Atributos&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public $numero;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public $intentos;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public $resultado = false;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Metodos o funciones</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public function __construct($numero, $intentos)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this -&gt; numero = $numero;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this -&gt; intentos = $intentos;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public function sortear()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $minimo = $this -&gt; numero / 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $maximo = $this -&gt; intentos * 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($i = 0; $i &lt; $this -&gt; intentos; $i++){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$int = rand($minimo, $maximo);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;self::intentos($int);&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public function intentos($int)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($int == $this -&gt; numero){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "&lt;b&gt;" . $int . " = " . $this -&gt; numero . "&lt;/b&gt;&lt;br&gt;";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this -&gt; resultado = true;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo $int . " = " . $this -&gt; numero . "&lt;br&gt;";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public function __destruct(){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($this -&gt; resultado){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "Felicidades, has ganado en " . $this -&gt; intentos . " intentos.";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "Que lastima, has perdido en " . $this -&gt; intentos . " intentos.";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; $loteria = new loteria(10,10);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; $loteria -&gt; sortear();</div><div>&nbsp; &nbsp; ?&gt;</div><div>&lt;/body&gt;</div><div>&lt;/html&gt;</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-30 23:14:33 UTC</pubDate>
         <guid>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2205130890</guid>
      </item>
      <item>
         <title></title>
         <author>75471154</author>
         <link>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2205144811</link>
         <description><![CDATA[<div>&lt;!DOCTYPE html&gt;</div><div>&lt;html lang="es"&gt;</div><div>&lt;head&gt;</div><div>&nbsp; &nbsp; &lt;meta charset="UTF-8"&gt;</div><div>&nbsp; &nbsp; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;</div><div>&nbsp; &nbsp; &lt;title&gt;Usuarios&lt;/title&gt;</div><div>&lt;/head&gt;</div><div>&lt;body&gt;</div><div>&nbsp; &nbsp; &lt;?php</div><div>&nbsp; &nbsp; &nbsp; &nbsp; class Usuario{</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public function __construct(){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "Llamado al constructor &lt;br&gt; &lt;br&gt;" ;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public function __destruct(){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "Llamado al destructor";</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; $usuario1 = new Usuario;</div><div>&nbsp; &nbsp; ?&gt;</div><div>&lt;/body&gt;</div><div>&lt;/html&gt;</div>]]></description>
         <enclosure url="" />
         <pubDate>2022-05-30 23:37:03 UTC</pubDate>
         <guid>https://padlet.com/72962870/z6z02tu2rrbyj3tv/wish/2205144811</guid>
      </item>
   </channel>
</rss>
