What Can You Do To Make Class Available For Inheritance But You Need To Prevent Its Method To Come In Inheritance Chain

What Can You Do To Make Class Available For Inheritance But You Need To Prevent Its Method To Come In Inheritance Chain


  • 6 Feb, 2012

    Well, Declare a class with public access specifier and mark all it's method to sealed . As anything which is declared with sealed keyword cannot be inherited.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.