FRAME 1 Object Oriented Programming by Travis W. Howard FRAME 2 Object Oriented Programming (OOP) is a style of programming first utilized in the 1960s. It required code to be written in a modular fashion to take advantage - First utilized in the 1960s - Modular coding as opposed to linear - Isolates code which makes it easier to identify and change subroutines - Provides a standardized container for data, allowing it to be manipulated differently throughout a program - Valuable tool when multiple programmers are working on a large project FRAME 3 TWO TYPES OF TECHNIQUES - Inheritance - Aggregation Which is better? Important programming decision especially when reusing code. FRAME 4 Aggregation is utilized to allow for exceptions when an object is defined from another source. Define a dog object. - Eats, walks, Barks, plays Create a cat object by inheritance. - Not true as the cat can bark. - Aggregation allows you to pick and choose which traits to utilize - Inheritance would be better utilized by creating a class with each animal as a subgroup FRAME 5 Inheritance is best utilized when an object's definition does not change often. This is due to inheritance creating a new subclass each time. "reuse almost all functionality of a class" FRAME 6-8 Industry Application FRAME 6 ENEMIES All have HPS, attack, and defense values FRAME 7 ENEMIES All have different weapons, armor, movement types FRAME 8 Allows easy expansions of original code. FRAME 9-10 best practices