• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

concept of early binding and late binding

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello everyone

i have daught in concept of early binding and late binding.What is it use in object oriented programing?
what early binding does ?
what late binding does ?
What concept does object oriented programing uses ?

dipak c
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Depak,
I assume you meant to say: doubt about binding. The concept relates to polymorphism.
Static (Early) Binding:
Traditional method of compiler determining the exact method to call. The binding depends on the object variable alone.
Dynamic (Late) Binding:
Object oriented approach to determining the method to call at run-time. The compiler places code so that the run-time environment will be able to determine the exact method to call. The binding depends on the type of the object.
Regards,
Manfred
 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Early binding:
Compiler does this binding..
(eg.,)
class variables, Static methods, static Variables ar involved in this.
Late Binding:
Done by JVM
(eg.,)
instance methods mainly, and determining class of a particular operation at run time

-----------------------------------------------------------------
if(correct)
{
leave it;
}
else
{
please correct me;
}
-----------------------------------------------------------------
regards
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic