Syntax
Class
1 | public class Dog { |
Getters and Setters
1 | public class Ball { |
Overloading
Overloading allows us to have as many constructors(with different signatures) as we want in a class.
1 | public class Ball { |
Inheritance
1 | public class Basketball extends Ball { |