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 |
What is $_ server request_method == post?
Explain PHP?
What is the difference between exception::getmessage and exception::getline?
when we use ob_start() function in php then the header() and session_start() does not gives the error like header already sent,please explain in brief
Can I include php in javascript?
How to create reusable code in php?
What is the difference between using copy() and move() function in PHP file uploading?
Explain the casts allowed in PHP?
Tell me what are the functions to be used to get the image's properties (size, width and height)?
Tell me what type of operation is needed when passing values through a form or an url?
Explain me what is the importance of "method" attribute in a html form?
How can we submit a form without a submit button?
23 Answers ABC, HCL, Infosys, Kept Bug, Panys, Rushmore Consultancy, Torque Infotech, Wipro, zCon Solutions,