-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Mrinal
Message 5 in Discussion

Concept of Polymorphism , which forms the base of OOPS , is as simple as :   
"Deciding at runtime / Resolving at runtime "   For e.g : Class A -- Base Class 
. Class B , C -- Derived from A .   All ave a method1 , now , in our code , we 
can directly know by typecasting , which object is there in A a i.e A,B,C , so 
which classes Method1 will be called -- This is Static PolyMorphism -- 
information can be gathered at compile time itself .   But suppose we can't get 
this info at compile time as assembly gets loaded at runtime and based on that 
A a gets filled , so if possible it resolves at runtime and let us know which 
method1 is called -- dynamic polymorphism .   Difference is -- First Case -- 
Compile time error                      -- Second Case - Exception , if it 
can't resolve which Method1 to call .   Hope that helps ,   Mrinal

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to