• Declared using keyword: class
• Only single inheritance is allowed in C#
• Class can implement more then one interface
• A class can inherit as well as implement an interface at one time
• Syntax: class ImplDerivedClass: BaseClass, Iface1()
• Access levels protected and private are only allowed on nested classes
• Types declared inside a class without an access modifier default to private
Generic Classes:
• Generic classes encapsulate operations that are not specific to a particular data type
• Most common use of such classes are in collections like linked lists, hash tables, stacks where general operations are performed regardless of data type
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment