classes and objects in objective-c vs java