PHP OOP

PHP Classes

The idea of classes is to access them from everywhere and include them into your page.

Reuse classes, its the point of oop to write less code ... use extends + classname creating a new class

Your old balance was: 0
You did a deposit of 100
Your new balance is: 100

Your old balance was: 0
You did a deposit of 15
Your new balance is: 15

Balance: 100Balance: 15

Use extends to create a new class

Your old balance was: 0
You did a deposit of 20
Your new balance is: 20

Alex the saver

Constants

3.1415
31415

Class Constructor

This is a method inside your class which will run automatically

We call the construct function
    Ideen
  • Bankautomat Logik (karte, pin, auszahlung und kontoauszug)
© Entrepreneur87 2018