diff --git a/lectures/dms/01_java_collections/index.html b/lectures/dms/01_java_collections/index.html index a001037..e372f61 100644 --- a/lectures/dms/01_java_collections/index.html +++ b/lectures/dms/01_java_collections/index.html @@ -1168,14 +1168,14 @@ An animal object is part of a compound object (semantically) but the an } } -

Image

+

Image

Composition - The object only exists if the parent object exists, if the parent object is deleted then so is the child object. The zoo object owns the compound object. If the zoo object is deleted then the compound object is also deleted.

public class Zoo {
     private Compound dogArea = new Compound();
 }
 
-

Image

+

Image

Inheritance A way of forming new classes based on existing classes. Has a "is-a" relationship.

Polymorphism - A concept in object oriented programming. Method overloading and method overriding are two types of polymorphism. @@ -1193,7 +1193,7 @@ A way of forming new classes based on existing classes. Has a "is-a" relationshi }

The super keyword called the parent class' constructor.

-

Image

+

Image

What is the difference between an abstract class and an interface - Java abstract class can have instance methods that implement a default behaviour. May contain non-final variables. - Java interfaces have methods that are implicitly abstract and cannot have implementations. Variables are declared final by default.

diff --git a/lectures/dms/02_uml/index.html b/lectures/dms/02_uml/index.html index b5b2ef3..804da87 100644 --- a/lectures/dms/02_uml/index.html +++ b/lectures/dms/02_uml/index.html @@ -1158,7 +1158,7 @@
  • Helps to manage the complexity
  • Enables reuse of design
  • -

    img

    +

    img

    Object Orientated Analysis

    Use case diagrams