Category: Oops

OopsPhpPHP Interview QuestionsUncategorized

What is the Scope Resolution Operator?

by:

“::” double colons is the scope operator it is used to call methods of a class that has not been instantiated. You should also understand static …

OopsPHP Interview QuestionsUncategorized

How do you load classes in PHP?

by:

Review the “autoload” and “spl_autoload_register” function (note:you should use the later). The autoload function basically triggers a function when a class is instantiated, you can put …

OopsPhpPHP Interview QuestionsUncategorized

What is Polymorphism?

by:

It’s simply the idea that one object can can take on many forms. So in PHP OOP one class “cars” may have two classes that extend …

OopsPhpPHP Interview QuestionsUncategorized

In a PHP class what are the three visibility keywords of a property or method?

by:

public, private and protected. The default is public. Public -> Any class may instantiate the class and call the method or property. Protected -> Only the …

OopsPhpPHP Interview QuestionsUncategorized

In PHP what is the difference between a Class and an Interface?

by:

Interfaces do not contain business logic, only method signatures that define a template that any classes implementing the interface must contain. Lets take an auto mobile …

OopsPhpPHP Interview QuestionsUncategorized

What is Object Oriented Programming?

by:

This is usually a pretty open ended question. You should understand classes (objects are instantiated classes), abstract classes, interfaces, methods, properties,inheritance, multiple inheritance as well as …