Saturday, 5 September 2015

keyword for overriding

keywords for overriding.

1)Virtual=overridable.

By default all methods are overridable.

2)Override=overrides.

If we are using override keyword with a function
then this override keyword also more functions as virtual.

3)Sealed=not overidable.

4)Abstract=must overridable.

*Abstract method must contain in abstract class.

*A method followed by abstract keyword is known as
abstract method.

It has following limitation.

1. Abstract method must contain in abstract class.

2. Abstract method do not contain definition.It
contain only signature of method.

14 comments:

  1. Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me 
    python Training in Pune
    python Training in Chennai
    python Training in Bangalore

    ReplyDelete

  2. This post is so interactive and informative.keep update more information...
    Salesforce Training in Chennai
    Salesforce Training in Anna Nagar

    ReplyDelete