Summary
Keywords
Full Transcript
Gracias a la sobrecarga de constructores podemos brindar distintas variantes a la hora de instanciar objetos de una determinada clase. Además, veremos un tercer uso de la palabra 'this'. Descargá el código de aquí: https://github.com/CharlyCimino/sobrecarga-constructores-java 🙌 ¡APOYÁ AL CANAL! Si te gusta mi contenido, invitame un cafecito 😁 ➡️ Desde Argentina: https://cafecito.app/charlycimino ➡️ Fuera de Argentina: https://paypal.me/charlycimino 📌 Dejá tu comentario 📝, dale 'like' 👍, suscribite al canal 👥 y activá la campanita 🔔 ¡GRACIAS! 🤳 ¡Seguime! 🌏WEB PERSONAL: http://charlycimino.com 🌏 🌎INSTAGRAM: http://instagram.com/charlycimino 🌏 🌍FACEBOOK: http://facebook.com/charlyycimino 🌏 🌏LINKEDIN: http://linkedin.com/in/charlycimino 🌏 🌏GITHUB: https://github.com/CharlyCimino 🌏 🌏TWITCH: https://www.twitch.tv/charlycimino 🌏 🌏PATREON: http://patreon.com/charlycimino 🌏 0:00 Intro 0:19 Repaso del video anterior 1:24 Sobrecargar un constructor sin argumentos 2:47 Evitar casos de ambigüedad en los parámetros 4:05 Sobrecargar un tercer constructor 6:23 Invocar a un constructor desde otro con 'this()' 9:53 Sobrecarga de constructores en la clase 'Scanner' de Java 10:30 No necesariamente sobrecargar constructores en todas las clases 11:38 Cierre #Sobrecarga #Constructor #Java
