Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When to use static or virtual methods?

Status
Not open for further replies.

Griffyn

Programmer
Jul 11, 2002
1,077
AU
Hi all,

I've just written this FAQ faq102-6271 for people still coming to terms with OOP. I hope people find it useful - let me know if you have any suggestions on improving it.

Thanks!
 
Found this, it may help


From the description you should use virtual methods if you intent to expand the base class later on, or allow people to expand your base class.

Another thing is that I assume you cannot "inherit" behaviours of static classes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top