Summary
Keywords
Full Transcript
Al colocarles visibilidad privada a los atributos de una clase, aparece la necesidad de poder (o no) consultar o establecer nuevos valores desde otra clase. Veamos que son y cómo definir GETTERS y SETTERS. 🙌 ¡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:28 Repaso del video anterior 1:28 Qué es un getter 2:37 Qué es un setter 4:01 Convención de nombres 'get... y 'set...' 4:41 Generar getters y setter con NetBeans 7:32 Generar getters y setter con Eclipse 8:36 Anticipo del 'this' 8:54 Cierre #Clases #Objetos #Java #getters #setters #encapsulamiento
