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 dao in php?
Tell me how can we pass the variable through the navigation between the pages?
What is __ construct in php?
Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
What is the meaning of symbol '$' in jquery?
Explain PHP?
Who is the father of php?
What’s the difference between md5(), crc32() and sha1() crypto on PHP? -
What is array filter php?
How php statement is different from php script?
Explain Traits in PHP?
What is the difference between unlink and unset ?