• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

Php Questions And Answers

Document preview thumbnail
Preview 1 out of 3 pages

PHP QUESTIONS AND ANSWERS

Content preview

PHP QUESTIONS AND ANSWERS

Write basic concepts of OOP - Answers -Abstraction.
Encapsulation.
Inheritance.
Polymorphism.

What is a class - Answers -A class is simply a representation of a type of object. It is
the blueprint/ plan/ template that describes the details of an object.

What is an object - Answers -An object for constructor as an instance of a class, and it
has its own state, behavior, and identity

Encapsulation - Answers -exposes only necessary information to the calling functions

Encapsulation is an attribute of an object, and it contains all data which is hidden. That
hidden data can be restricted to the members of that class.

Levels are Public, Protected, Private, Internal and Protected Internal.

Polymorphism - Answers -It's simply the idea that one object can take on many forms.
So in PHP OOP one class "cars" may have two classes that extend it, for example a
"Honda" class and a "BMW" class.

What is Inheritance - Answers -Inheritance is a concept where one class shares the
structure and behavior defined in another class. If inheritance applied on one class is
called Single Inheritance, and if it depends on multiple classes, then it is called multiple
Inheritance.

In a PHP class what are the three visibility keywords of a property or method? -
Answers -public, private and protected.

The default is public.

Public Property - Answers -Any class may instantiate the class and call the method or
property.

Protected Property - Answers -Only the class itself or inherited (children) classes may
call a method or property

Private Property - Answers -Only the class itself may call a method or property.

What is static and dynamic binding - Answers -Binding is nothing but the association of
a name with the class. Static binding is a binding in which name can be associated with
the class during compilation time, and it is also called as early Binding.

Document information

Uploaded on
January 23, 2026
Number of pages
3
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GEEKA
3.8
(376)
Sold
2223
Followers
1450
Items
62835
Last sold
3 hours ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions