CS 3304: Comparative Languages
Object-Oriented Programming
[
Course Documents
] : [
Object-Oriented Programming
]
Previous
Contents
Next
Keyword Index
Java (cont.)
Dynamic Binding
In Java, all messages are dynamically bound to methods, unless the method is final
Encapsulation
Two constructs, classes and packages
Packages provide a container for classes that are related (can be named or unamed)
Entities defined without a scope (access) modifier are only visible within the package
Every class in a package is a friend to the package scope entities elsewhere in the package
Package scope is an alternative to the friends of C++