...
Let's take a look at some code, starting with Python.
A Python Class
As is the case with Python in general, the Python OO paradigm is pretty concise, as the simple class in the following listing. The Student class has three data members: name, age, and major subject.
An Equivalent Java Class
Not to be outdone by our Python coding effort, the second Listing shows an equivalent Java class.
...