Lecture notes

contents


Course structure

  • No course project, but labs for coding
  • Lecture contents
    • Problem analysis
    • Objects and classes
    • Class elements → instances, methods
    • Encapsulation principle
    • Object creation
    • Class run
    • Overloading methods, variables and lifetime
    • Commenting public interface

Objects and classes

Encapsulation principle

Separation of implementation and interface

  • How an object performs its duties is hidden from the outside
  • Methods can be used without knowledge of the inner workings
  • Inner workings can be modified without impacting use

Constructors

  • They do not have return types
  • The name always matches the name of the class

Key takeaways

  • a

Lecture slides