Home » Interview » Technology

What’s the difference between accessing a class method via -> and via ::?

Correct Answer: :: is allowed to access methods that can perform static operations, ie those, which do not require object initialization

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion