Today's Question: Members

2 views
Skip to first unread message

dorit...@aol.com

unread,
Jul 6, 2008, 1:45:53 PM7/6/08
to davids-comput...@googlegroups.com
Briefly describe what members are, and list the four types of members.

  I
 V

  I
 V

  I
 V

  I
 V

  I
 V

  I
 V

Members are the parts of a class or a structure that hold data or implement functionality.
The primary member types are
fields               holds data
properties
methods  and   
events              implements functionality

The Famous, the infamous, the lame - in your browser. Get the TMZ Toolbar Now!

David Grigsby

unread,
Jul 10, 2008, 4:38:04 PM7/10/08
to davids-comput...@googlegroups.com
I have an easy way to remember this:
2 passive, 2 active 
 
Fields are passive aka you have to set or read them, Properties set and get fields so it is active
Methods are passive aka you have to call them, events trigger methods so it is active.

So really only have to remember passive, them remember how to make them active :-)
 
I love the question a day idea Dorita!
 
Also, here is a cool site of questions and answers I use to brush up on before each phone tech screen I do before my C2C interviews.
 
 
David W. Grigsby
Grigsby Consulting LLC
484 East Carmel Way Suite 390
Carmel, IN 46032
 
Reply all
Reply to author
Forward
0 new messages