Thread: Constructor !

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    100
    Rep Power
    0

    Constructor !


    In JS, the constructor is automatically created when function is instantiated ??

    and what is Prototype?? I cant get it
  2. #2
  3. Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jan 2004
    Location
    New Springfield, OH
    Posts
    1,217
    Rep Power
    1469
    Originally Posted by ionezation
    In JS, the constructor is automatically created when function is instantiated ??

    and what is Prototype?? I cant get it
    Have you tried Googling? Both of those should be pretty easy to answer with a quick Google search.

    I'm not above helping people with their homework, but show a little initiative and put in a little effort of your own first. And if you have, take the time to tell us what you've already tried. You'll get a much better response that way.
    Don't like me? Click it.

    Scripting problems? Windows questions? Ask the Windows Guru!

    Stay up to date with all of my latest content. Follow me on Twitter!

    Help us help you! Post your exact error message with these easy tips!
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2013
    Posts
    100
    Rep Power
    0

    hmm


    What i got is that Constructor automatcially called in object when it was created in CLASS ? is that right?? merely the concept of Constructor is same in every language??
  6. #4
  7. Old Fart
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Location
    Chicago
    Posts
    106
    Rep Power
    4
    Originally Posted by ionezation
    What i got is that Constructor automatcially called in object when it was created in CLASS ? is that right?? merely the concept of Constructor is same in every language??
    The "concept of Constructor" exists in every object oriented language.
    But the implementation of the constructor is not guaranteed to be the same from one OO language to another.
    Google can be your friend if you wish to research this issue further.

IMN logo majestic logo threadwatch logo seochat tools logo