Skip to main content
Dat 1. Sem Efterår 2025
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Resources

Materialer samlet

  1. Coding with John: Java Main Method Explained - What Does All That Stuff Mean?
  2. Getting to know the Command Line
  3. Geeksforgeeks: Scanner (+the scanner bug)
  4. ThinkJava: Læs kapitel 11
  5. docjava.dk: objektorienteret programmering

Bonusmateriale

1.docjava.dk: Do you speak Java? Repetition om compiling og JVM 2.Baeldung: Java main() method 3.Hello world guide 4. docjava.dk: Klasser

Nøgleord:

  • class: A template for a new type of object.
  • instance: A member of a class. Every object is an instance of some class.
  • instantiate: Create a new instance of a class in the computer’s memory.
  • instance variable: An attribute of an object; a non-static variable defined at the class level.
  • information hiding: The practice of making instance variables private to limit dependencies between classes.
  • constructor: A special method that initializes the instance variables of a newly-constructed object.
  • shadowing: Occurs when a local variable or parameter has the same name as an attribute.
  • client: A class that uses objects defined in another class.
  • getter: A method that returns the value of an instance variable.
  • setter: A method that assigns a value to an instance variable.
  • override: Replacing a default implementation of a method, such as toString. instance method: