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...


explain the difference between accessing a class method via -> and via ::



explain the difference between accessing a class method via -> and via ::..

Answer / Sunit Kumar Tiwari

Accessing a class method with an arrow (->) is used when we have an instance of the object, and it allows us to call methods on that specific object. On the other hand, calling a static method uses double colon (::), regardless of whether there's an instance or not.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WordPress Interview Questions

How to call a constructor for a parent class?

1 Answers  


Explain me how to add option for open menu item in new tab?

1 Answers  


How do I replace pages in wordpress?

1 Answers  


Tell me how to hide directory browsing in wordpress from server using .htaccess file?

1 Answers  


Can you create media folders in wordpress?

1 Answers  


What is the use of search engine visibility field in wordpress reading settings?

1 Answers  


What is the difference between post and pages in wordpress?

1 Answers  


What are the steps to install wordpress theme?

1 Answers  


How do I install an older version of a wordpress plugin?

1 Answers  


How media files can be inserted into the wordpress site?

1 Answers  


Why wordpress is better than blogger for blogging?

1 Answers  


How to take the backup of a wordpress site?

1 Answers  


Categories