Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Answer sheet
Message
De
25/08/2002 11:38:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00693394
Message ID:
00693407
Vues:
37
Wow, Jim! Just the thing I was looking for! I struggled with those questions for *such* a long time before I saw your cheat-sheet.

Thanks!!!
~~Bonnie

>Mauricio Flores Olmos in his article in the August issue of Rapozine titled "A test for Object Orientation in Visual FoxPro" has proposed a list of questions for evaluating prospective employees and developers knowledge and understanding of OOP as it applies to VFP. The problem is that in his article Mauricio did not provide an answer sheet for those questions. I have taken it upon myself to provide an asnswer sheet for the questionaire the Mauricio has shared with us.
>
>What's Object Oriented Programming?
>
>Object oriented programming is porgramming with objects like hammers and saws. ONe must be careful though because too large a hammer can damage the computer.
>
>What's an object in OOP?
>
>The first letter (that is OOP, the O is the Object)
>
>Describe the following OOP concepts:
>
>- Class:
>Being stylish as in haviong class.
>
>- Object:
>- Encapsulation
>The preferred way to take aspirin for your headaches. Much easier to swallow than pills.
>
>- Properties
>The little cards that you buy in the game Monopoly.
>
>- Methods
>Ways to do stuff.
>
>- Polymorphism
>The ability to change into other animals, like morphing into a cat.
>
>- Inheritance
>The money your parents have for you that you can't use utnil they die.
>
>- Multiple inheritance
>The same money only you have brothers and sisters that you must share it with.
>
>From the above mentioned features, which ones are supported in VFP?
>All of them
>
>Describe how a class is defined in code in VFP.
>A class is like, well, upper class and lower class. Upper class people wear nicer clothes.
>
>What are visual classes?
>The classes you wear so you can see better.
>
>How do you create visual classes in VFP?
>You go to lenscrafters and wait for about an hour.
>
>How do you create custom classes as form insertable objects?
>It is impolite to insert things into your forms.
>
>In an object, how do you execute the class original code if you're adding code to the subclass?
>Well this depends on what country you are in, some use hanging to execute folks, other use the electric chair.
>
>What Nodefault does?
>Gets you out of trouble sometimes, like "I am nodefault for that broken window."
>
>Define the Container and Control controls. What's the difference between them?
>A container is something you put something in, like a flask and whiskey. Control is what you lose when you drink the whiskey.
>
>What's the purpose of the OleControl and OleBoundControl controls? What's the difference between them?
>OLE is what you shout at a bull fight. When the bull is bound up you can shout OLE Bound.
>
>What's the purpose of This and Parent operators?
>Silly, I can't see what you have so how can I tell what "This" is.
>
>What's the use of _ACCESS and _ASSIGN?
>Access is that database Microsoft has. Assign is what you read on the outside of a store.
>
>Which reserved words do you use to define the visibility of properties and methods?
>20 20, partially blind, totally blind
>
>What are the commands to instantiate a class?
>My motehr doesn;'t allow me to instantiate anything. She says that is dirty.
>
>Can you subclass an ActiveX control?
>Yes, take its money away.
>
>How can you add custom properties and methods to an ActiveX control in code?
>Stuff is added to X stuff usually by a plastic surgeon
>
>How can you add custom properties and methods to an ActiveX control in the visual class designer?
>You should not be watching when X stuff is getting stuff added to it.
>
>I hope this answer sheet is helpful to people.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform