Results 1 to 4 of 4
  1. #1
    mysourha is offline Member
    Join Date
    Dec 2009
    Posts
    2
    Rep Power
    0

    Default Java is an OOP language.

    I read about the characteristic of java and there's one point that i could not fully understand about it.

    Java is object-oriented, which means that, among other characteristics, an object can take advantage of being part of a class of objects and inherit code that is common to the class. Objects are thought of as "nouns" that a user might relate to rather than the traditional procedural "verbs." A method can be thought of as one of the object's capabilities or behaviors.

    can someone please explain to me in detail what does it mean? thank you in advanced :)

  2. #2
    o0oNorao0o's Avatar
    o0oNorao0o is offline Member
    Join Date
    Oct 2009
    Posts
    51
    Rep Power
    0

    Default

    Me too ..
    I don't fully understand it , so I don't understand classes and objects ! :(

  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,309
    Blog Entries
    7
    Rep Power
    20

    Default

    SmallTalk (another, much older, object oriented language) explained it clearly: objects can be thought of as nouns and what are called methods in Java are the verbs of the language; one object is the 'actor' that 'says' something (by using a verb) to an 'actee', another object. This is the means of communication between objects: one object calls a method of (another) object in Java speak. Whatever that other object does is the business of the other object; why it does it was caused by the first object. Whether or not an object can 'say' something to (another) object is a matter of the implementation of a class to which an object belongs.

    kind regards,

    Jos

  4. #4
    mysourha is offline Member
    Join Date
    Dec 2009
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Replies: 1
    Last Post: 01-12-2010, 01:02 PM
  2. Replies: 1
    Last Post: 05-06-2009, 06:43 PM
  3. JAVA a cross-platform language? I have my doubts!
    By willemjav in forum Advanced Java
    Replies: 34
    Last Post: 10-24-2008, 11:26 PM
  4. Is JAVA the right language?
    By EDENO in forum New To Java
    Replies: 3
    Last Post: 08-08-2008, 12:29 AM

Posting Permissions

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