GoConqr has a new look! Let us know what you think.

Mind map

Objects & Classes

Ana Ausek Computer Science English

Map content

Objects & Classes

  1. Objects

    • Fields
      • Called by objectReference.fieldName
    • Methods
      • Called by objectReference.methodName
    • Instance
      • Keyword 'new' to create a new entry or instance of the object
    • Reference variable
      • Keyword 'null'; variable holds no value
        • Test 'null' by using '==' operator
  2. Classes

    • Fields
      • Variables; Primitive or references to objects
    • Class name
      • camelCase naming convention
    • Methods
      • Declaration part; aka signature of the method
        • Return value
          • Primitive
          • Object
          • Void
            • Returns nothing
        • Method name
          • Method main invokes the class containing it
        • List of arguments
          • If more than 1, it is separated by a comma
      • Body
        • Code that performs the action
    • Constructors
      • Name
        • Same as the class
      • List of arguments
        • Can contain 0 args = 'no-arg'
    • UML diagram
      • Depicts fields & methods in a class
    • Reference variables are initialized once an instance is created
      • Keyword 'null' is not needed

Information

Description
Computer Science Mind Map on Objects & Classes, created by Ana Ausek on 23/05/2019.
Created by
Ana Ausek
Views
1
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?