Tip #7: Basic OOP in Java
Do you know the 4 principles of Object Oriented Programming (OOP)? Can you give examples in Java?
Here is:
1. Inheritance: In Java, all classes inherit from Object.
2. Encapsulation: Private fields and public methods - get and set.
3. Polymorphism: If you create a class and override a method ( remember equals and hashCode tip ? )
4. Abstraction: Interfaces define methods but not the actual implementation.
Now you know the basics. Go deeper!
Happy coding!