PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: air traffic controller

Advanced C#

Back to document page

1Advanced C# ssenb ckUniversity of Linz, Inheritance Interfaces Delegates Exceptions Namespaces and Assemblies Attributes Threads XML Comments2Inheritance3Syntaxclass A {// base classint a;public A() {...}public void F() {...}}class B: A{// subclass (inherits from A, extends A)int b;public B() {...}public void G() {...}} B inherits aand F(), it adds band G()-constructors are not inherited-inherited methods can be overridden (see later) Single inheritance: a class can only inherit from one base class, but it can implement multiple interfaces.

Delegate = Method Type Declaration of a delegate type delegate void Notifier (string sender); // ordinary method signature // with the keyword delegate Declaration of a delegate variable Notifier greetings; Assigning a method to a delegate variable void SayHello(string sender) {Console.WriteLine("Hello from " + sender);}

  Types, Advanced, Sender, Advanced c

Download Advanced C#


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Related search queries