100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

PHP QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
3
Grade
A+
Uploaded on
23-01-2026
Written in
2025/2026

PHP QUESTIONS AND ANSWERS

Institution
PHP
Course
PHP








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
PHP
Course
PHP

Document information

Uploaded on
January 23, 2026
Number of pages
3
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & 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.

Get to know the seller

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 YALA UNIVERSITY
View profile
Follow You need to be logged in order to follow users or courses
Sold
2013
Member since
3 year
Number of followers
1447
Documents
48584
Last sold
13 hours ago

3.8

345 reviews

5
172
4
61
3
44
2
16
1
52

Recently viewed by you

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

Frequently asked questions