We can call static member function through both class name and objects...but we generally use class name to call static member function instead of objects....
Is there any performance benefit in it by using class name or is it just to remove confusion by not calling through object
SpS 34 Posting Pro
perniciosus 19 Junior Poster in Training
jwenting 1,889 duckman Team Colleague
perniciosus 19 Junior Poster in Training
SpS commented: Thanx +1
SpS 34 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.