Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29400

Re: Help understanding methods

From Josip Almasi <joe@vrspace.org>
Newsgroups comp.lang.java.programmer
Subject Re: Help understanding methods
Date 2014-07-28 21:29 +0200
Organization B.net Hrvatska d.o.o.
Message-ID <lr689v$f8$1@gregory.bnet.hr> (permalink)
References <lr46d1$ub3$1@dont-email.me>

Show all headers | View raw


On 07/28/2014 02:46 AM, Scott Dunning wrote:
> So, I'm very new to Java, I have a summer college course and we're on
> functions (methods) and I'm having a bit of trouble understanding them.
...

Certanly seems so.
Let me point out the difference.

A method is not a function. It's a pointer to function.
An object is a structured collection of pointers to functions and variables.
A class is definition of that structure.

Give or take, that's how we used to explain back in the day when folks 
were switching from C to java.
Nowadays folks switching from python to java, I need explanation without 
pointers and structures;>

Regards...

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Help understanding methods Scott Dunning <scottwd01@gmail.com> - 2014-07-27 17:46 -0700
  Re: Help understanding methods Knute Johnson <eternal@knutejohnson.com> - 2014-07-27 18:13 -0700
    Re: Help understanding methods Scott Dunning <scottwd01@gmail.com> - 2014-07-27 18:19 -0700
      Re: Help understanding methods Knute Johnson <eternal@knutejohnson.com> - 2014-07-27 18:49 -0700
        Re: Help understanding methods Knute Johnson <eternal@knutejohnson.com> - 2014-07-27 21:36 -0700
  Re: Help understanding methods Martin Gregorie <martin@address-in-sig.invalid> - 2014-07-28 01:18 +0000
  Re: Help understanding methods Scott Dunning <scottwd01@gmail.com> - 2014-07-27 18:56 -0700
    Re: Help understanding methods "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-07-28 12:07 +0100
      Re: Help understanding methods "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-07-28 12:44 +0100
  Re: Help understanding methods Roedy Green <see_website@mindprod.com.invalid> - 2014-07-28 07:20 -0700
  Re: Help understanding methods Josip Almasi <joe@vrspace.org> - 2014-07-28 21:29 +0200

csiph-web