PDA

View Full Version : Object



aja
08-23-2007, 07:25 AM
What is an object??

Bob Phillips
08-23-2007, 08:26 AM
We don't do homework.

aja
08-30-2007, 07:25 AM
Thanks, but what is an object?

mvidas
08-30-2007, 08:04 AM
http://en.wikipedia.org/wiki/Object-oriented_programming - Everything you'll want to know


Object (http://en.wikipedia.org/wiki/Object_%28computer_science%29) A particular instance of a class. The class of Dog defines all possible dogs by listing the characteristics and behaviors they can have; the object Lassie is one particular dog, with particular versions of the characteristics. A Dog has fur; Lassie has brown-and-white fur. In programmer jargon, the object Lassie is an instance of the Dog class. The set of values of the attributes of a particular object is called its state (http://en.wikipedia.org/wiki/State_%28computer_science%29).The object consists of state and the behaviour that's defined in the object's class.

aja
08-30-2007, 08:08 AM
Thanks, but what is an object?

mvidas
08-30-2007, 08:13 AM
If you're not interested in reading what an object is (defined quite explicitly and quite well on that page, as well as right above your response to me), you may want to take a class.

malik641
08-30-2007, 08:32 AM
Thanks, but what is an object? Since this is so general, here is the dictionary's definition. This should be all you need based on your general question:



ob?ject http://cache.lexico.com/g/d/premium.gif http://cache.lexico.com/dictionary/graphics/luna/thinsp.pnghttp://cache.lexico.com/g/d/speaker.gif (https://secure.reference.com/premium/login.html?rd=2&u=http%3A%2F%2Fdictionary.reference.com%2Fbrowse%2Fobject) /n. ˈɒbhttp://cache.lexico.com/dictionary/graphics/luna/thinsp.pngdʒɪkt, -dʒɛkt; v. əbˈdʒɛkt/ Pronunciation Key (http://www.vbaexpress.com/forum/) - Show Spelled Pronunciation (http://www.vbaexpress.com/forum/)[n. ob-jikt, -jekt; v. uhhttp://cache.lexico.com/dictionary/graphics/luna/thinsp.pngb-jekt] Pronunciation Key (http://www.vbaexpress.com/forum/) - Show IPA Pronunciation (http://www.vbaexpress.com/forum/) –noun
1.anything that is visible or tangible and is relatively stable in form.
2.a thing, person, or matter to which thought or action is directed: an object of medical investigation.
3.the end toward which effort or action is directed; goal; purpose: Profit is the object of business.
4.a person or thing with reference to the impression made on the mind or the feeling or emotion elicited in an observer: an object of curiosity and pity.
5.anything that may be apprehended intellectually: objects of thought.
6.Optics. the thing of which a lens or mirror forms an image.
7.Grammar. (in many languages, as English) a noun, noun phrase, or noun substitute representing by its syntactical position either the goal of the action of a verb or the goal of a preposition in a prepositional phrase, as ball in John hit the ball, Venice in He came to Venice, coin and her in He gave her a coin. Compare direct object (http://dictionary.reference.com/search?q=direct%20object), indirect object (http://dictionary.reference.com/search?q=indirect%20object).
8.Computers. any item that can be individually selected or manipulated, as a picture, data file, or piece of text.
9.Metaphysics. something toward which a cognitive act is directed. –verb (used without object)
10.to offer a reason or argument in opposition.
11.to express or feel disapproval, dislike, or distaste; be averse.
12.to refuse or attempt to refuse to permit some action, speech, etc. –verb (used with object)
13.to state, claim, or cite in opposition; put forward in objection: Some persons objected that the proposed import duty would harm world trade.
14.Archaic. to bring forward or adduce in opposition.

Oh, and to mark this thread solved, click on Thread Tools --> Mark Thread Solved
:thumb

Bob Phillips
08-30-2007, 09:29 AM
It's what I do when someone keeps asking dumb questions.

malik641
08-30-2007, 09:38 AM
It's what I do when someone keeps asking dumb questions.
I should request to have that definition added to dictionary.com's definition of object.

aja
08-31-2007, 12:28 AM
I guess I'll never know. Thanks anyway.

malik641
08-31-2007, 05:08 AM
I guess I'll never know. Thanks anyway.
Not with that attitude.

Thanks for asking, though.

mvidas
08-31-2007, 05:09 AM
aja,

Though part of me thinks you may be acting stubborn for stubborns sake, if you are in fact being serious I would like to help. However you'll need to say more than just the same line over and over again.

What is it about my first post (#4 above - Link (http:#4)) that does not explain it for you? If you say something like "Well I understand that ___ but I just dont understand ____" we can help; however we simply cannot just inject our knowledge into your mind. We don't know what you already know and what you're having trouble grasping.

aja
08-31-2007, 05:16 AM
Thanks. Basically the main problem I have is to do with the explanation of an object. What is it and what does it do?

mvidas
08-31-2007, 05:29 AM
All of this is explained (much better than I can explain) at the wikipedia link above. But perhaps you have an aversion to wikipedia. If you don't, I strongly urge you to read it, because it gives great examples.

An object is the individual run-time unit that is used as the basic building block of programs. An object is an instantiation (instance) of a class. A class is only a blueprint offering a defined functionality. That functionality is actually implemented by creating an instance of that class, in form of an object. Each object is capable of receiving messages, processing data, and sending messages to other objects. Each object can be viewed as an independent little machine or actor with a distinct role or responsibility.

In object-oriented programming (OOP), an instance of a program (i.e. a program running in a computer) is treated as a dynamic set of interacting objects. Objects in OOP extend the more general notion of objects described above to include a very specific kind of typing, which among other things allows for:

1. data members that represent the data associated with the object.
2. methods that access the data members in predefined ways.

In the case of most objects, one can access the data members only through the method members, making it easy to guarantee that the data will always remain in a well-defined state. In almost all object oriented programming languages, a dot(.) operator is used to call a particular method/function of an object, which holds true for VBA as well.

aja
08-31-2007, 07:41 AM
So there are many various states and attributes that can make up a particular being. These beings managed by the programmers own wisdom and mind within the program. With this in mind, what is an object?

mvidas
08-31-2007, 07:56 AM
With that in mind, an object would be the Particular Being (of class Being).

aja
08-31-2007, 08:13 AM
So in Back to the future, the delorean, the flux capacitor, the engine, the wheels etc...What is the object?

mvidas
08-31-2007, 08:32 AM
LOL
Back to the future - project
Delorean - collection of objects
flux capacitor - object of class TimeTravelDevice
engine - object of class BoxerMotor
wheels - object of class Travel

aja
08-31-2007, 08:38 AM
Thanks Matt. But I fail to see the connection between Deloreans and VBA?

mvidas
08-31-2007, 08:43 AM
There doesnt have to be one, vehicles and movies can be object oriented. Or in this case Fox oriented

aja
08-31-2007, 08:49 AM
What do you mean by object orientated? What is an object?

TrippyTom
08-31-2007, 08:54 AM
I wish this board had a feature to ignore stupidity and obstinance. This guy is obviously just trying to be annoying and doesn't care about an answer.

aja
08-31-2007, 08:57 AM
Trippy Tim, this is not helpful. If you don't know what the answer is please bear with me as I struggle to find the truth.

mvidas
08-31-2007, 09:02 AM
What is all this talk of bears? I only see penguins

mvidas
08-31-2007, 09:03 AM
Oh wait I see a troll too. Still no bears
What is a bear??

lucas
08-31-2007, 09:08 AM
Thanks Matt. But I fail to see the connection between Deloreans and VBA?

I'm not convinced that you are looking for a connection or that you are serious at all.

mvidas
08-31-2007, 09:09 AM
Definitely not Steve, before I responded this morning I saw a couple other posts they made and they werent serious. Still fun though

lucas
08-31-2007, 09:11 AM
aja Your time here is limited if you don't get serious right away.

lucas
08-31-2007, 09:14 AM
Definitely not Steve, before I responded this morning I saw a couple other posts they made and they werent serious. Still fun though

Sure but it needs to be in an appropriate area..not in a help forum. It's a waste of a lot of peoples limited time here.

Bob Phillips
08-31-2007, 02:19 PM
Cut him now, he is a pain, a nuisance, a joke, a troll. Think of a pejorative term, he fits it. There is nothing funny or even mildly amsuing about a stuck record. I got his number in #8.

johnske
08-31-2007, 05:02 PM
What is an object??Chapter2 - 97 guide (http://xlvba.3.forumer.com/index.php?showtopic=97)
Chapter4 - 2000 guide (http://xlvba.3.forumer.com/index.php?showtopic=97)
Thread closed...

mdmackillop
09-01-2007, 01:06 PM
aja is banned for 7 days.