Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: I need help understanding what two aspects define objects

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need help understanding what two aspects define objects

    I have googled but could not really find what I was looking for or an answer I could understand. Also, I am a visual learner so an example would really help.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I need help understanding what two aspects define objects

    Can you re-ask your question? For example: what is an aspect? Why are there only two?

    an answer I could understand.
    If you have found some answers and need help understanding them, copy them here and ask some questions about them.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    414
    My Mood
    Angelic
    Thanks
    27
    Thanked 61 Times in 55 Posts

    Default Re: I need help understanding what two aspects define objects

    What do you mean 'defines' and object?

    Look around you - objects are everywhere. Cars, your computer, humans, tress etc.
    They are defined by their characteristics and personality.

    In Java, it's the same principle really. You define an object to be an instance of a class.

    public static void main(String[] args) {
       TheObjectClass theObject = new TheObjectClass();
    }

    In the example, 'theObject' is an instance (or a virtual object) created from the
    class ;TheObjectClass;. Each class would have a constructor for initilaization and
    fields that represent each individual personality of the object.

    * name
    * colour
    * size

    These are called attributes in Java-talk. Each attribute may have methods (functions)
    that manipulate each field.

    Wishes Ada xx
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: I need help understanding what two aspects define objects

    Where did you get the question? Provide a reference, if possible.

  5. #5
    Junior Member
    Join Date
    Aug 2014
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need help understanding what two aspects define objects

    Didn't get it anywhere in particular. Taking a Java class and it was in a lecture. Just trying to understand and learn. Maybe a better way to put it is:

    what is an aspect? Why are there only two?

    Thank you Ada for your answer but it still doesnt really clear it up for me.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I need help understanding what two aspects define objects

    My answers: No idea and see the first answer
    that's why I asked.

    If your instructor asks that on a quiz, it could be important. Otherwise push it to the back and continue learning java.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Member jdv's Avatar
    Join Date
    Jul 2014
    Location
    This Land
    Posts
    73
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Re: I need help understanding what two aspects define objects

    Quote Originally Posted by maineman View Post
    I have googled but could not really find what I was looking for or an answer I could understand. Also, I am a visual learner so an example would really help.
    My guess is that your instructor is going to focus on polymorphism and inheritance, which are two of the 4(ish) classic features of an OO language. But everyone has their hobby-horse, and your instructor could be banging a different drum. As discussed upthread, unless you know this going to be worth, at most, 2-4 points on a quiz, don't sweat it too much.

    I discussed OO without immediately resorting to jargon in a seriously joking manner a short time ago. Consider it general overview with a fair amount of hand-waving.

    Remember: computer languages don't really conform to any one specific category, especially the more experience you have with them. They have aspects that align with various categories, but this isn't really that important. So, learn the categories and get to know them, and see how your fave languages conform to these categories closely or loosely. But don't get hung up on the jargon or nomenclature too much.

Similar Threads

  1. what is a java i mean define
    By khatar in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 10th, 2014, 04:48 AM
  2. Help understanding Objects and Constructers
    By thedarkhitman in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 14th, 2013, 06:11 PM
  3. Understanding Classes and Objects
    By AustinStanley in forum What's Wrong With My Code?
    Replies: 6
    Last Post: November 9th, 2012, 11:35 AM
  4. Can Define what is this error
    By chronoz13 in forum What's Wrong With My Code?
    Replies: 9
    Last Post: December 18th, 2009, 01:01 AM
  5. ERROR, I CANT DEFINE IT
    By chronoz13 in forum AWT / Java Swing
    Replies: 7
    Last Post: December 2nd, 2009, 09:47 AM