Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What's the difference between accessing a class method via -> and via ::?
Answer: :: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook