#SoftwareEngineering is pure problem solving. Two of the most important characteristics you need as a #softwareDeveloper are: willingness/desire to learn new things, not being afraid to work on things you've never seen before.
If a method's parameter type is a superclass (e.g., Object), you may pass to this method an object of any of the parameter's subclasses (e.g. Circle or String). This is known as polymorphism. #Java
#accessModifiers:
#private: if not intended for use from outside the class.
#public: if intended for the users of the class
#protected: if intended for the extenders of the class but not for the users of the class. #Java
Inheritance vs. Composition:
Inheritance: extending a class MyStack from the class ArrayList, inheriting everything from ArrayList, and defining methods such as push, peek, pop, etc.
Composition: defining a new class MyStack that contains an ArrayList as a data field.
#Java
You can sort an #array using the java.util.Arrays.sort(array) method. To sort an #arraylist, use the java.util.Collections.sort(arraylist) method. #Java
The object member access operator (.) precedes the casting operator. We use parentheses to ensure that casting is done before the . operator, as in
((Circle)object).getArea();
Generic programming is a style of computer programming in which algorithms are written in terms of types to-be-specified-later that are then instantiated when needed for specific types provided as parameters.
Let there be a #GeometricObject class and a #Circle class that extends GeometricObject.
GeometricObject g = new Circle();
The actual type of the object is Circle.
The declared type of the object GeometricObject.
which method is invoked is determined by actual type.
Let there be a class #Foo and a class #Bar extending the class Foo. Let there be a method that takes an object of type Foo as a parameter. If we input an object of type Bar instead of an object of type Foo in that method, we have polymorphism. #Java