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 |
How to Define a Constant in PHP? Is $ symbol necessary?
What are the different ways to login to a remote server? Explain the means, advantages and disadvantages?
What is php built on?
What are html entities?
does PHP support foreign key and Rollback?yes or not.if not then why. how will you done these concept in php?
1 Answers Avanigoradia, Primus Global,
where do we use htaccess?
Does php support multithreading?
How can you get the size of an image in PHP?
What is the difference between pop3 IMAP and MAPI?
How is php different from other languages?
Which parts of php are case sensitive?
How many data types are used by php?