- package: group similar classes together. Classes in the same package share “public” method & attribute.
- interface: just use to define prototype for common classes, not concern about implementation. Classes can inherit (using keyword “implements”) from many interface.
- abstract class: (faster than interface since interface need to look up which implement to use) classes can inherit (using keyword “extends”) from only 1 abstract class. Abstract class cannot be instantiated.
- abstract method: a method is declared without definition/implementation.
- static final: attribute defined by using both keywords “static” and “final” are not absolutely constant, but it’s an instance stored at the same memory address. Its value can be changed by using reference assignment.
- final class:
- final method:
- static:
- inheritance: if inherited class call “super” method, then if it override a method of parent class, then “super” use this override method instead of the method of parent class.
English
French
This is my first time i visit here. I found so many useful stuff in your website especially its discussion, From the a lot of comments on your articles! I guess Im not the only one receiving the many satisfaction right here! keep up a good job.
This is just my small blog and I try to sum up what I have learned here. I’m glad that you find it useful