import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Developer {
private String job;
private String location;
}
@Data
@NoArgsConstructor
public class Profile extends Developer {
private String name;
private String occupation;
public Profile() {
super("Software Engineer at Luizalabs / Magalu", "Rio de Janeiro / RJ");
this.name = "Pedro Ricardo";
this.occupation = "Software Engineer";
}
}
phricardorj / javamail Goto Github PK
View Code? Open in Web Editor NEWA simple email sending with Java and Spring Boot