Coding for fun
... and for 饭
C++ | Java | Python | JavaScript | Go | Rust | Kotlin | |
---|---|---|---|---|---|---|---|
Garbage Collection | NO | YES | YES | YES | YES | NO | YES |
Runtime | Library | Virtual Machine | Library | Virtual Machine | Library | Library | Virtual Machine |
class | YES | YES | YES | YES | NO | NO | YES |
struct | YES | NO | dataclass | NO | YES | YES | data class |
interface | NO | YES | NO | NO | YES | trait | YES |
Inheritance | YES | YES | YES | YES | NO | NO | YES |
new | YES | YES | NO | YES | YES | NO | YES |
Pointer | YES | NO | NO | NO | YES | YES | NO |
Generics | Templates | YES | YES (after 1.18) | YES | YES |