1. Array Declaration
C:
int a[5]
C++:
int* a = new a[5]
Java:
int[] a = new int[5]
Scala:
val a:Array[Int] = new Array[Int](5)
Python:
a = List(5)
2. Class Deriviation
C++:
Class SubClass: public BaseClass {
public:
....
}
Scala:
Class SubClass(MyArg: Any) extends BaseClass {
}
Python:
Class SubClass(BaseClass):
xxx
6. Python import system: Not only package and modules can be imported, but also all identifiers that resides in the namespace of a module.
Java import system: Only classes can be imported.
7. In java, method must be declared static to be called by context other than the class instance itself.
In python, method without self as first argument must be declared static to be called by class instance