Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is the use of stripslashes in php?

0 Answers  


How to check if a string contains a character or word in php?

0 Answers  


What are the rules to determine the “truth” of any value which is not already of the boolean type?

0 Answers  


What is the difference between implode() and explode() in php?

0 Answers  


Why php is sometimes called as embedded scripting language?

0 Answers  


What are php libraries?

0 Answers  


What is trim codeigniter?

0 Answers  


How to retrieve values out of an array?

0 Answers  


Why php script is not running in browser?

0 Answers  


how do we can copy of the content of a web page with the help og the URL and display them onto any other page

5 Answers  


class Database { public static $_instance; public static function getInstance() { if(!isset(self::$_instance)) self::$_instance = new Database(DB_SERVER, DB_USER, DB_PASS, DB_NAME); print_r(self::$_instance); return self::$_instance; } } can any one explain "self::$_instance = new Database(DB_SERVER, DB_USER, DB_PASS, DB_NAME);" this line

1 Answers  


In what are the ways you can encrypt the password ?

7 Answers  


Categories