What is encapsulation in oop php?



What is encapsulation in oop php?..

Answer / gokilavani s

Encapsulation is fundamental concepts in object oriented programming
Encapsulation provides three main benifits
Data hiding
Code organization
Code reusability
Php using access modifiers public, protected, private control access to the modified and properties
Public- accessible from anywhere
Protected - accessible within class and subclass
Private - accessible only in the class itself

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Tell me what is the actually used php version?

0 Answers  


Tell me what are the encryption techniques in php?

0 Answers  


How does php sessions work?

0 Answers  


how many types of error in PHP.

3 Answers  


How can we change the maximum size of the files to be uploaded?

0 Answers  


What are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee(eno int(2),ename varchar(10)) ?

7 Answers   HCL,


Give the case where we can use get and we can use post methods?

0 Answers  


Describe which programming language does php parallel to?

0 Answers  


Extract url from this string? It should be flexible for all strings, not for this string only. "yahoo.comyahoo.co.inhotmail.org"

1 Answers   A1 Technology,


Is age interval or ordinal?

0 Answers  


What are the php variables?

0 Answers  


How do you compare strings in java?

0 Answers  


Categories