LP VINYL RECORDS

Buy Today! There Is Thousands to Choose From

Sealed Private



Sealed Private
Can any1 tell me the differences between sealed methods & private methods? & if so, Can you briefly explain?

I am using C# and I have been going over stuff in Object-Oriented Programming. I hope this helps. Thanks so much!!

A sealed method cannot be derived by another method. You cannot base a class/method on a sealed class/method. This is used to prevent unwanted derivation.

A private method can be used as a base for another method. However, it is completely hidden from external classes.

For a more detailed discussion, read this:

http://jingyeluo.blogspot.com/2005/06/what-great-net-developers-ought-to_03.html

Floating, Private Island, Water House, yachting


Categories: Uncategorized
Comment form currently closed..