Skip to main content

Posts

Showing posts with the label PHP Interview Questions

PHP Interview Questions

What is Object Oriented Programming? likelihood high 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 why OOP is helpful as compared to procedural programming. http://net.tutsplus.com/tutorials/php/object-oriented-php-for-beginners/ In PHP what is the difference between a Class and an Interface? likelihood high 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 for example. If we were to create and interface for a car we would want to define a few methods like drive, stop, turn left , turn right. This mean that any vehicle that is a car (aka implements the interface car) must have methods for these things...