Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why is Java the poster child of OO when c++ was literally c with classes


The poster child for statically typed OO is actually Simula 67. And Java is basically Simula with C-style syntax and packages.


1. Java was made OO from ground up. No pointer arithmetic, all code is encapsulated in classes, etc.

2. C++ has some unusual OO features -- friends, multiple-inheritance.

3. Most importantly, Java is significantly more approachable than C++ due to automatic memory management.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: