sentence: furthermore , languages often meld these approaches ; for example , perl 's packages are largely similar to c + + 's namespaces , but optionally double as classes for object-oriented programming ; and java organizes its variables and functions into classes , but then organizes those classes into ada-like packages .