Home » Tag Archives: IT

Tag Archives: IT

Top Javascript Interview Questions And Answers Part 1

1. What is JavaScript?JavaScript is a client-side as well as server side scripting language that can be inserted into HTML pages and is understood by web browsers. 2. What are the data types supported by JavaScript? The data types supported by JavaScript are: UndefinedNullBooleanStringSymbolNumberObject 3. What are the features of JavaScript? JavaScript …

Read More »

What is the abstraction in PHP?

Abstraction is the concept of moving the focus from the details and concrete implementation of things, to the types of things (i.e. classes), the operations available (i.e. methods), etc class A { private $isOn = false; public function on() { $this->isOn = true; } public function Off() { $this->isOn = …

Read More »

What is the encapsulation in PHP?

Wrapping some data in single unit is called Encapsulation. Encapsulation is used to safe data or information in an object from other it means encapsulation is mainly used for protection purpose. class A { private $name; public function setName($name) { $this->name = $name; } public function getName($name) { return $this->name; …

Read More »

What is the Polymorphism in PHP?

Polymorphism is one of the PHP Object Oriented Programming (OOP) features. Polymorphism is derived from two Greek words. Poly (meaning many) and morph (meaning forms). In general, polymorphism means the ability to have many forms. In other words, “Polymorphism describes a pattern in Object Oriented Programming in which a class …

Read More »

What is the inheritance in PHP?

Inheritance is the process in which object of one class acquire the properties of another class. The following types of inheritance is supported in php- Single Level Inheritance – In Single Level the Parent class methods will be extended by the child class. All the methods can be inherited. class …

Read More »