DeveloperSide.NET Forums
December 10, 2019, 02:15:01 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Methods before Members or Members before Methods?  (Read 4950 times)
0 Members and 1 Guest are viewing this topic.
Captain Xarzu
Guest
« on: September 12, 2007, 06:06:36 PM »

Methods before Members or Members before Methods?

In a header file, which do you define/declare first.  Do you list all your variables before the methods (also known as functions), or do you do it the other way around?

I always thought that you put the variables first.  That was the way I was taught in school.  Now I hear that that is wrong and you have to do it the other way.  I am told you should list the methods first.

I know this is all just asthetic. But there must be a set accepted way to do this. What is it?

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!