CS202 Introduction to Java
Minor Differences
Remember the comma operator in C++?
In Java it can only be used in for loops to allow for multiple
increment steps
There is no operator overloading
Which means you cannot compare strings with > >= etc.
You cannot assign objects to do a complete copy (=)
You cannot read and write using >> or <<
You cannot cast class types!
To convert you must use special methods (i.e., function calls)
But, you can assign data members values – directly:
class list {
  int i = 100;
  video v = new video();