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 the difference between accessing a class method via -> and via ::?



What is the difference between accessing a class method via -> and via ::?..

Answer / Garima Agrawal

In PHP, you can access class methods using -> (arrow operator) for instances of that class or using :: (scope resolution operator) to call static methods. The arrow operator requires an instance, while the scope resolution operator doesn't.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WordPress Interview Questions

Can you host your own wordpress website?

1 Answers  


What do u mean by template?

1 Answers  


How Custom theme is different than Normal theme?

1 Answers  


How do I find my current version of wordpress?

1 Answers  


Do I own my content on wordpress?

1 Answers  


How do I make my wordpress site secure?

1 Answers  


What big companies use wordpress?

1 Answers  


What is the category?

1 Answers  


Explain me why are all the comments being moderated?

1 Answers  


How do I get a short code?

1 Answers  


What is the ternary conditional operator in php?

1 Answers  


What are the disadvantages of wordpress?

1 Answers  


Categories