{ } javasamplesAI. CODE. BUILD.
Advertisement

THE TUTORIAL LIBRARY

All tutorials

1,914 tutorials
PHP2008-11-22

Interfaces in PHP

Class inheritance enables you to describe a parent-child relationship between classes. For example, you might have a base class Shape from which both Square and Circle derive. Howe

Read tutorial
PHP2008-11-22

instanceof OPERATOR in PHP

The instanceof operator was added as syntactic sugar instead of the already existing is_a() built-in function (which is now deprecated). Unlike the latter, instanceof is used like

Read tutorial
PHP2008-11-22

parent:: AND self:: in PHP

PHP supports two reserved class names that make it easier when writing OO applications. self:: refers to the current class and it is usually used to access static members, methods,

Read tutorial
PHP2008-11-22

Polymorphism in PHP

The subject of polymorphism is probably the most important in OOP. Using classes and inheritance makes it easy to describe a real-life situation as opposed to just a collection of

Read tutorial
PHP2008-11-22

Static Methods in PHP

Similar to static properties, PHP supports declaring methods as static. What this means is that your static methods are part of the class and are not bound to any specific object i

Read tutorial
PHP2008-11-22

Static Properties in PHP

Classes can declare properties. Each instance of the class (i.e., object) has its own copy of these properties. However, a class can also contain static properties. Unlike regular

Read tutorial
Advertisement
PHP2008-11-22

Destructors in PHP

Destructor functions are the opposite of constructors. They are called when the object is being destroyed (for example, when there are no more references to the object). As PHP mak

Read tutorial
PHP2008-11-22

Objects in PHP

The main difference in OOP as opposed to functional programming is that the data and code are bundled together into one entity, which is known as an object. Object-oriented applica

Read tutorial
PHP2008-11-22

for Loops in PHP

The start expression is evaluated only once when the loop is reached. Usually it is used to initialize the loop control variable. The truth expression is evaluated in the beginning

Read tutorial
{ }

The future is yours to build.

One example today. A better developer tomorrow.

Find something to build →