Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2008
    Location
    Jupiter
    Posts
    49
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Difference between a class and function?

    Sorry, meant difference between a method and a function!


    Is the only difference between them is that methods are usually associated with classes in higher programming languages? Trying to get my head around all of this terminology first, thanks.
    Last edited by tokio; 05-02-2009 at 09:24 PM. Reason: incorrect title

  • #2
    Regular Coder Iszak's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Western Australia
    Posts
    332
    Thanks
    2
    Thanked 58 Times in 57 Posts
    Methods are functions inside classes and is associated with Object Orientated Programming where as functions aren't in a class and are associated with procedural coding.

  • Users who have thanked Iszak for this post:

    tokio (05-03-2009)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •