c#, oop introduction and examples

Download C#, OOP introduction and examples

If you can't read please download the document

Upload: agniagbc

Post on 16-Apr-2017

3.240 views

Category:

Technology


6 download

TRANSCRIPT

Csharp

Csharpagni campos special thanks to Marek

C# part 1 - summary

Module (resto da diviso) %

For loops

Enumerators

Classes

Not good practice create private variables for properites

Good practice make variables of a Class public

C# part 2 - summary

Class overview design

Warehouse Class - Example

Class - Inheritance

static

Summary OOP

Arrays

Arrays

Arrays Sort() method

Dictionary

Var makes any variable Type Safe

Dictionary Class with methods

Recursive method calls without Error handlers

Error handlers (Expection Class Inheritance)

Interfaces

ABSTRACT CLASS OVERRIDE

Note Class treat as Storable (with access to its all methods)

FOR EACH ON LIST OF STORABLE INTERFACE

Most often Interfaces Class used to be more named conventioned with capital I adead of Interfaces name, but thats gone. I.E.

Interface on the slide is Storable and not Istobrable as many would imagine still.

Foreach example using Employee List

Delegates

Delegates Sintax

Delegates example

Delegates Instances

Delegates example of use (MediaTester)

Delegates MediaTester Program