Fliw / PHPPBO

A Simple Example of PHP Hypertext Preprocessors's Object Oriented Programming Paradigms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kompilasi Contoh PHP PBO

Dibawah ini Adalah beberapa contoh dari paradigma pemograman PHP PBO (OOP) yang sudah lumrah dipakai dalam Web Development. Tutorial Dibawah ini mencakup kode dan juga comment yang diselipkan diantara code, terdapat juga beberapa penjelasan dasar yang cukup spesifik. Dari Hal Sesederhana Membuat object (Object Init) sampai Topik Yang sulit Seperti inheritance dan enkapsulasi.

  • Hello World : HelloWorld.php

  • Properti, Metoda Dan Konstruktor : Properti.php

  • Validasi Tipe Kelas,Properti dan Metoda : validasi.php

  • Penggunaan Keyword Static Dan Implementasinya : static.php

  • Konstanta Dalam Objek Dan Implementasinya : Const.php

  • Keyword Final Dan Implementasinya : Final.php

  • Pewarisan Sifat Kelas Induk (Inheritance) : Inheritance.php

  • Enkapsulasi Dan Efeknya Dalam Pewarisan Sifat : Enkapsulasi.php

Testing

Kalian Dapat Menjalankan Codingan Diatas Langsung Menggunakan PHP-Cli Maupun XAMPP, Contoh Testing PHP CLI

$ php NamaFile.php

Adapun Menggunakan XAMPP, Pindahkan Dulu 1 Folder Master Diatas ke Htdocs Kalian, Jalankan XAMPP Dan Buka

Localhost/PHPPBO-master/NamaFile.php

Terimakasih :) -fliw

About

A Simple Example of PHP Hypertext Preprocessors's Object Oriented Programming Paradigms


Languages

Language:PHP 100.0%