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

New Message on BDOTNET

-----------------------------------------------------------
From: shashijeevan
Message 3 in Discussion


Hi Ravi,
 
You will use override for only virtual methods of 
base class. This keyword is used to inform the compiler that the derived class 
has different implementation of this method.
 
For Example:
If base class is Polygon and derived class is 
Square. The method Area() that calculates the area of the Square will have 
different logic than that of Polygon.
 
Having a different method will not be of any use in 
this case.
 
regarsd,
shashi

  ----- Original Message ----- 
  From: 
  Ravikumarcbe 
  To: BDOTNET 
  Sent: Friday, January 23, 2004 12:32 
  PM
  Subject: can anybody explain 
  Overriding?
  

  
    
      
      New Message on BDOTNET
    
      

  can 
    anybody explain Overriding?


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 1 in 
                Discussion 
      
        
          
            
            
              From: Ravikumarcbe 
            
              

                Hi,
                    Can anybody explain me the 
                Overriding clearly? 
                I know overiding means, totaly 
                overiding implementation of base class method... but 
                signature should be same  right?
                   my question is, I could have differnet method 
                instead of overiding the base class method... I'm going to 
                totaly change the implementation of the method...
                wt is the advantage of this?
                 
                Thanx in advance
                 
                With rgds,
                Ravi
View other groups in this 
    category. 



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

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