~/talk

Adventures in OOP (Object Oriented Programming)

Talkat MidCamp 2017 · 2017-03-30..04-02· [php, software-architecture]
links:none on file
slides:none on file

A PHP-coded Pokemon demo shows how a basic Pokemon class with a constructor and attack method becomes specialized via extends into Electric/Water subclasses and a Pikachu override, then how a Pokemon interface enforces getName/getType/attack/getStrength/getWeakness so no generic, typeless Pokemon is instantiated. A reusable evolution trait adds evolvesTo and evolve() to Poliwhirl without multiple inheritance. Code runs as a clear, working walkthrough of classes, inheritance, interfaces and traits.

AI-written summary · about

  1. 0:00Introduction to OOP
  2. 0:55Understanding Classes
  3. 2:34Creating and Using Objects
  4. 3:41Inheritance Concepts
  5. 5:00Strategic Battling
  6. 6:20Implementing Interfaces
  7. 8:02Using Traits
  8. 9:55Q&A and Drupal Context
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.