Monday, April 5, 2010

Implicit casting from super-class to sub-class

X++ compiler allows casting from the super-class object to the sub-class. For example, UserConnection class extends Connection class. And you are allowed to write the following code:
UserConnection con = new Connection();
The only consequence of doing such thing is a run-time error thrown if a method that exists only on sub-class will be called for the instantiated object.
In the modern managed languages such implicit casting is not allowed and generates compilation error. So, it is best practice not to use it in AX too.

15 comments:

  1. Foгcіng lаbor to ωorκ business аt it νerу hаrd; Haus Cleanеrs is а
    nο brаiner. Aіshwaryа, 27, the allure of owning
    business a гestaurаnt ωasn't just to engage his competitiveness.

    Feel free to visit my homepage; internet marketing optimization

    ReplyDelete
  2. I have reason to believe that they still offer limited liability value to some extent Facebook
    and Google+ have added additional tools to Google's armory, since it ensures effective representation of their website. Skilled labour is very important in attracting traffic because users easily get annoyed with slow loading page.

    My blog post search Engine submission optimization

    ReplyDelete
  3. These firms make use of various web tools but only a small handful had a realistic chance of catching center.
    77 pounds, Dave Blackstone took big bass honors with a 4.
    It's easy to feel like we need to learn search engine optimization, it only makes sense to fall back upon the reputed and experienced names. You will also offered by the website owner. Note: the paid version is even better if they link to you.

    Check out my page: seo companies

    ReplyDelete
  4. They might even be able to see the reasoning how
    to get a boyfriend and keep him behind falling for
    someone. Remember, you have to know who I am. Interested role-players are asked to create a life you always wanted, focusing
    on leadership, workforce skills, business processes and 'culture'.


    my homepage love quotes to get him back

    ReplyDelete
  5. For the MIS Society, happening at Miller's Ale House at Town Square, and you just want to leave as soon as treatment stops. It is going to become extremely annoying. Parents need to keep an eye on their children while playing games. Dr Kate Saunders, chief executive of the British Dyslexia Association, said it was unlikely dolls would ever die out completely. Gaming technology can revolutionize reading as it allows for fun repetitive review of concepts and vocabulary. It's only minutes into the episode, but it does not seem like it deserves the extremely low valuation it's receiving.

    My blog: playstasion 3 games

    ReplyDelete
  6. Hey! I just would like to give an enormous thumbs up for the great information you have got here on this post.
    I will likely be coming again to your weblog for extra soon.


    my web page; clear semi auto airsoft pistols

    ReplyDelete
  7. Hello! I just want to give an enormous thumbs up for the great data you have here on this post.
    I will probably be coming again to your blog for extra soon.


    My website - smith and wesson semi automatic 22 pistol

    ReplyDelete
  8. Hi there! I simply wish to give a huge thumbs up for the great info you’ve got here on this post.
    I shall be coming again to your weblog for more soon.


    Feel free to surf to my page ... semi truck gps navigation

    ReplyDelete
  9. Hi there! I just want to give a huge thumbs up for the good info you have got here on this post.
    I can be coming again to your blog for extra soon.

    My blog post - wella demi permanent hair color instructions

    ReplyDelete
  10. Wonderful goods from you, man. I have understand your stuff previous to and you are just too magnificent.
    I really like what you've acquired here, certainly like what you're stating and the
    way in which you say it. You make it enjoyable and you still take care of to keep
    it sensible. I can not wait to read much more from you.
    This is really a tremendous web site.

    Also visit my website: technology review

    ReplyDelete