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

Mind map

Classes

Zach Assid English

Map content

Classes

  1. Blueprint/template

  2. Naming Convention: Capitalize the Initial of Each Word

  3. Constructor

    • Objects
      • Fields (attributes)
        • Examples for car: 1) color 2) number of tires 3) plate number 4) number of valves
        • Camel Naming Convention
      • Methods (actions)
        • Examples for car: 1) run 2) brake
        • Camel Naming Convention
      • Both fields and methods are optional
      • Creating an object: Use new keyword
        • Example: new Employee();
      • Assigning to an Object Variable: Declare an object reference with the same type as the object
        • Example: Employee employee = new Employee();
      • Call a method or field: Use a period (.)
        • Examples: objectReference.methodName objectReference.fieldName
      • Reference Variable has No Value: Use "null"
        • Example: Book book = null;
    • Every class has at least one
    • Often called "a constructor method" but does not have a return value

Information

Description
Mind Map on Classes, created by Zach Assid on 28/05/2020.
Created by
Zach Assid
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?