Static member – no instance of the class required to call method.

Instance member – must create an instance w/ new keyword to call methods and properties.

Can mix in the same class, but can not reference instance members from inside of static members.

Classes can be decorated w/ static keyword – all members must be static, can not create a new instance of the class.

For Example System.Math

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.