Category: Oops

GeneralOopsPhpPHP Interview Questions

What is the Scope Resolution Operator?

by: Admin

“::” 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 …

GeneralOopsPHP Interview Questions

How do you load classes in PHP?

by: Admin

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 …

GeneralOopsPhpPHP Interview Questions

What is Polymorphism?

by: Admin

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 …

GeneralOopsPhpPHP Interview Questions

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

by: Admin

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

GeneralOopsPhpPHP Interview Questions

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

by: Admin

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 …

GeneralOopsPhpPHP Interview Questions

What is Object Oriented Programming?

by: Admin

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 …

Exit mobile version