What is OOP

  • OOP is object oriented programming
  • programming pardigm centered around objects

Classes and Objects

  • classes are templates or a blueprint, contatin data
  • objects are instances of a class, need to be instantiated
  • methods are functions of a class
  • Method Declaration consists of 6 components: Access modifer, Return type, Method name, Parameter list, Exception list, Method body
  • Calling a method allows for code reuse, optimization, and organization
  • To call an object's method you have to make an object reference

Homework

no FRQ, finish Goblin Game, implement a 0.8 percent chance of landing a hit (due monday) Goblin HW