SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
5.
Paso Por Valor <ul><li>ByVal en el código </li></ul><ul><li>Saca una copia de la variable </li></ul><ul><li>Usa esa copia en la sub o function </li></ul><ul><li>No modifica el valor original </li></ul>
6.
Paso Por Referencia <ul><li>Trabaja con el mismo espacio de memoria </li></ul><ul><ul><li>La “referencia” de memoria </li></ul></ul><ul><li>En el sub o function puede tener otro nombre </li></ul><ul><li>Se modifica el valor de la variable original </li></ul>
7.
Diferencias Entre Lenguajes <ul><li>Algunos lenguajes usan solo un tipo </li></ul><ul><li>Ej: Java </li></ul><ul><ul><li>Todo se pasa por referencia </li></ul></ul><ul><ul><ul><li>Casi todo es un objeto </li></ul></ul></ul><ul><ul><li>Menos los tipos “primitivos” </li></ul></ul><ul><ul><ul><li>byte, integer, long, boolean, char </li></ul></ul></ul><ul><ul><li>Para pasar un byte por referencia </li></ul></ul><ul><ul><ul><li>Se convierte a objeto </li></ul></ul></ul>
0 likes
Be the first to like this
Views
Total views
439
On SlideShare
0
From Embeds
0
Number of Embeds
7
You have now unlocked unlimited access to 20M+ documents!
Unlimited Reading
Learn faster and smarter from top experts
Unlimited Downloading
Download to take your learnings offline and on the go
You also get free access to Scribd!
Instant access to millions of ebooks, audiobooks, magazines, podcasts and more.
Read and listen offline with any device.
Free access to premium services like Tuneln, Mubi and more.