PHP OOPs Part5

PHP OOPs Part5

1. What is a copy constructor?
This is a special constructor for creating a new object as a copy of an existing object. There will be always only on copy constructor that ca...

PHP OOPs Part4

PHP OOPs Part4

31. What is the difference between new and override?
The new modifier instructs the compiler to use the new implementation instead of the base class function. Whereas, Overr...

Basic OOPs Part3

Basic OOPs Part3

1. What is method overriding?
Method overriding is a feature that allows sub class to provide implementation of a method that is already defined in the main class. This will...

Basic OOPs Part2

Basic OOPs Part2

1. What is Inline function?
Inline function is a technique used by the compilers and instructs to insert complete body of the function wherever that function is used in the ...

Basic OOPs Part1

Basic OOPs Part1

1. What is OOPS?
OOPS is abbreviated as Object Oriented Programming system in which programs are considered as a collection of objects. Each object is nothing but an instanc...