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.
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.
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.
Can you re-ask your question? For example: what is an aspect? Why are there only two?
If you have found some answers and need help understanding them, copy them here and ask some questions about them.an answer I could understand.
If you don't understand my answer, don't ignore it, ask a question.
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)
Where did you get the question? Provide a reference, if possible.
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.
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.
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.