×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT杂谈 / Can VFP be classed as OOP?
    • I guess Yes or No is not important...
      I have ever read about some papers and artciles about OOP history. It seems to me that few people mentioned VFP. Frankly speakig, I don't know what VFP means.

      If you meant a technology by VFP, I guess it is one that has been forgotten. I asked some
      team members (they are at their 50's ) for advice about VFP but they told me they have not yet heard of this term.
      • Thank you, Jabber! I'm learning Java according to your opinion.VFP visual foxpro. I hope I have some OOP experience except Java. Visual Foxpro seems to be the closet. btw, it's very import to me.
        Thank you!

        I've read almost all your articles in the forum. It's very helpful. In fact, I'm just learning Java as you told one friend here" beginning with Thinking in Java, input every line of the code in the book."

        VFP ie Visual FoxPro. It's popular in China for a long time. I remembered it's called as OOP before. But I can't find it any more. I have much experience in VFP. I hope it can be changed to OOP experience. So, I must make sure whether Visual FoxPro is OOP. If so, I can talk a lot about the OOP and VFP during the interview. So, I should know something more about the relation of VFP and OOP.

        thank you!
        • Pal, you can claim you are object-oriented
          本文发表在 rolia.net 枫下论坛Few interviewer will dispute with you about object-based, object-oriented, or object-supported. In any case, you should claim you are object-oriented. Once you have a good mastering of Java, you had better reform part of you FoxPro experiences into Java experiences. I am telling you survival skills. Some people tell me they want to be "honest". I can say if you are absolutely honest, you will starve in Canada. In Canada, employer need you have hands-on experiences even you want to be waiter in a Chinese restaurant.

          Your question is really academic. In any case, you are object-oriented since you are learning Java. What is the difference between object-based and object-oriented?
          The big difference is if there is polymorphism, if there are late bidning ( or dynamic binding). Without dynamic binding,
          your stuff is object-based only.

          I can gave you an example in Java. If you created a class called Animal. Your Animal has a move() method. Then, created some subclasses such as Cat, Dog, Snake. So far, you are object-based because you defined your own data-type and
          considered inheritance.

          Now, you make some modifications in your design: You make your Animal's move method abstract. Consequently, you are forced to implement move() method for each subclass. Let me assueme your have the following implementations: The cat jumps; The dog runs; The snake crawls. They move in different ways.

          Suppose sb else have already stored a bunch of Animals in the Animal table in the database. Now you use JDBC to fetch these animals. Whenever an animal you get, you ask it to move. In Java, this anamil can move in the way they should do. In other words, you just need to get animals from the dababae and ask them to move. If it is a Snake, it will crawl. If it is a dog, it will run.
          you DO NOT need to check if your animal is a dog or a cat. All these are implemented by dynamic binding, or late binding.

          In Java, you have another way ---using Interface--- to implement polymorphism.

          In C++, you can use virtual functions to implement polymorphism.

          The relationship of polymorphism and dynamic (late) binding is: Polymorphism is realized by use of dynamic binding.

          Though I have never touched FoxPro, I guess it is object-based at most. On the other hand,
          SmallTalk, Objective C, C++ and Java are object-oriented.

          Bruce-Eckel has an elegant example about polymorphism. He used musical instruments as examples. I suggest you have a look and run his example.

          Rather than try to dig out some treasuries for your old skills, you would better spend more time to master new hot technologies. In the job interview, there is no mercies. If you tell the people: Hey I used FoxPro for 5 years, although it is no loger hot, but it supports OOP, .. so I an object-oriented... The employer would say: Man, no, no, I just need a guy who has hands-on experiences in Java, or in C++, ... They are merciless.

          As I tried to get into IT field, I had ever done a terrific performance in a job interview. I answered correctly all the Java questions,
          from Java basics to Java servlets. Unfortunately, I did not get an offer. The project manager insisted to hire a guy who has hands-on experiences in Weblogic.
          After 6 months, I met a consultant who quited from that company. We talked about this matter. He told me: the manager did get a Weblogic guy but this guy is not good.
          But I think this is fairness. Even though that guy (he is Chinese, too) is not so good, he should get the offer because he meets the standard.

          After that job interview, I have my friend downloaded a trial version of Weblogic for me and played it for 2 weeks. I modifed my resume and got an offer. This job provides me a lot of opportunites to master new technologies...更多精彩文章及讨论,请光临枫下论坛 rolia.net
          • Jabber, it's so kind of you! Your interview skills are very important. I'm now learning Java and I hope I can got a job in half a year. Thank you! Good luck!
    • Do you mean Visual FoxPro by VFP?
      If my guess is right, I suggest you forget about it. Very, very, very few opportunities ....
      One of my friend's wife has ever been a VFP programmer, butr now she is Java lady.
    • VFP supports OOP.
      • Thank you! about OOP, I got 3 discriptions about OOP. Can you help me to make it clear? thank you!
        Thank you! about OOP, I got 3 discrpitions:
        1. Object Oriented Program
        2. Object Based Program
        3. Supports OOP.

        OOP is pure like Java.
        Object Based Program is like Visual Basic, it's said only 0.5 OOP.
        Supports OOP. You told me like VFP. May I know details about it?

        I remembered VFP is called as OOP before. But I can't find it any more. I have much experience in VFP. I hope it can be changed to OOP experience. So, I must make sure whether Visual FoxPro is OOP. If so, I can talk a lot about the OOP and VFP during the interview. So, I should know something more about the relation of VFP and OOP.

        thank you!
        • According to what Jabber said above, I should precisely say...
          According to what Jabber said above, I should precisely say VFP supports OBP or "OOP without polymorphism".
          I use "supports" here to indicate that you can do "pure" structure programming in VFP.
          • Dear HH, I think the question itself is not significant.
            Visual FoxPro is becoming the past.
            Even it supprts full OOP, even it is a flower,
            it hardly brings a job offer for a new immigrant. This is my point.

            The similar story is that of OS/2. OS/2 is really a nice operating system, according to one of my friends. However, it has little share in the market. In such a case, it does not make sense if we list its advantages over Windows.
            • I agree with you on this point.
    • Hi, there. I am a C++ and Java programmer and I've never heard any relationship between VFP and OOP. Incidentally, if you have quesion on Java, please don't hesitate to ask me. Just put your question here. Good luck.