public class Me extends Person {
private final String firstName = "Mykhailo";
private final String lastName = "Musiienko";
public String email = "[email protected]";
public String status = "Iām currently learning Java";
public String[] skills = {"Java", "JavaScript", "HTML", "CSS"};
public void sayHello() {
System.out.println("Hello there!");
}
}
mypage-solutions / lesson_15 Goto Github PK
View Code? Open in Web Editor NEWAn Interface in Java programming language is defined as an abstract type used to specify the behavior of a class.
Home Page: https://docs.oracle.com/javase/tutorial/java/concepts/interface.html