head first java chapter 2
TRANSCRIPT
Head First Java Chapter 2Tom Henricksen
Object oriented programming● Procedural vs Object oriented
● Object oriented models real world
● OO is easier to understand
● OO handles memory management
● Procedural is top-down
Object oriented programming● Methods vs procedures
● Objects vs records
● Classes vs modules
● Procedure calls vs messages
Object oriented programming● Super class
● Sub class
● Instance variables
● Methods
Eclipse - instance variables
Eclipse - instance variables
Eclipse - methods
Class vs objects● Class is a blueprint
● Create many objects
Class basics● OO Program easy to extend
● All Java programs are classes
● Class can inherit variables and methods
● Objects use methods to create behavior
Be the compiler
● Exercise A
● Exercise B