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

Mind map

Chapter 4: "Objects and Classes"

kimberly mace English

Map content

Chapter 4: "Objects and Classes"

  1. OOP: Object Oriented Programming

    • Using models to solve real problems
  2. Object

    • Every object has two features
      • Attributes
        • In Java: Fields
      • Actions the object is able to perfrom
        • In Java: Methods
    • AKA: Instance
    • No value: null
  3. Classes

    • Blueprint needed to create objects of identical type
    • Class determines the object
    • Let programmers create abstraction of a problem
      • Abstraction: Using programming objects to represent real-world objects
    • All elements in Java must reside in a class
    • 3 things to consider when writing a class
      • Class name
      • Fields
      • Methods
    • Keyword: class
    • Every class must have a constructor.
      • Used to construct an object.
      • AKA: "constructor method"
      • Does not have return value
  4. Fields

    • Primative or reference variables
  5. Methods

    • Define actions objects can do
    • Declaration + Body
      • Declaration: Return value, method name, list of arguments
        • Void: Method returns nothing
      • Body: code to perform that action
    • Main: entry point to application
  6. UML: Unified Modeling Language

    • UML class diagram
    • Allows you to include field type and method signature.

Information

Description
Mind Map on Chapter 4: "Objects and Classes", created by kimberly mace on 07/09/2020.
Created by
kimberly mace
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?