Raised This Month: $ Target: $400
 0% 

Wich method is better?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zeus
Senior Member
Join Date: Jul 2008
Old 04-12-2011 , 08:02   Wich method is better?
Reply With Quote #1

This
Code:
public init()
{
       if(var==a)
            function_a()
       else if(var=b)
            function_b()
}

public fuction_a()
        do something

public fuction_b()
        do some other things
Or this
Code:
public init()
{
       if(var==a)
            function(a)
       else if(var=b)
            function(a)
}

public fuction(x)
        do something with x
zeus is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode