🗊Презентация Interfaces. C# Collections

Нажмите для полного просмотра!
Interfaces. C# Collections, слайд №1Interfaces. C# Collections, слайд №2Interfaces. C# Collections, слайд №3Interfaces. C# Collections, слайд №4Interfaces. C# Collections, слайд №5Interfaces. C# Collections, слайд №6Interfaces. C# Collections, слайд №7Interfaces. C# Collections, слайд №8Interfaces. C# Collections, слайд №9Interfaces. C# Collections, слайд №10Interfaces. C# Collections, слайд №11Interfaces. C# Collections, слайд №12Interfaces. C# Collections, слайд №13Interfaces. C# Collections, слайд №14Interfaces. C# Collections, слайд №15Interfaces. C# Collections, слайд №16Interfaces. C# Collections, слайд №17Interfaces. C# Collections, слайд №18Interfaces. C# Collections, слайд №19Interfaces. C# Collections, слайд №20Interfaces. C# Collections, слайд №21Interfaces. C# Collections, слайд №22Interfaces. C# Collections, слайд №23Interfaces. C# Collections, слайд №24Interfaces. C# Collections, слайд №25Interfaces. C# Collections, слайд №26Interfaces. C# Collections, слайд №27Interfaces. C# Collections, слайд №28

Вы можете ознакомиться и скачать презентацию на тему Interfaces. C# Collections. Доклад-сообщение содержит 28 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1





Interfaces. 
C# Collections.

 
.Net Core. 2017
Описание слайда:
Interfaces. C# Collections. .Net Core. 2017

Слайд 2





AGENDA
Interface declaration
Interface implementation
Built-in .Net interfaces
Task1
C# Collections
Task 2
Описание слайда:
AGENDA Interface declaration Interface implementation Built-in .Net interfaces Task1 C# Collections Task 2

Слайд 3





Interface declaration
Описание слайда:
Interface declaration

Слайд 4





Interface declaration
Описание слайда:
Interface declaration

Слайд 5


Interfaces. C# Collections, слайд №5
Описание слайда:

Слайд 6





Any class or struct that implements the interface must implement all its members.
Any class or struct that implements the interface must implement all its members.
By using interfaces, we may include behavior from multiple sources in a class.
It is important in C# because the language doesn't support multiple inheritance of classes. 
We must use an interface for simulating inheritance for structs, because they can't actually inherit from another struct or class.
Описание слайда:
Any class or struct that implements the interface must implement all its members. Any class or struct that implements the interface must implement all its members. By using interfaces, we may include behavior from multiple sources in a class. It is important in C# because the language doesn't support multiple inheritance of classes. We must use an interface for simulating inheritance for structs, because they can't actually inherit from another struct or class.

Слайд 7


Interfaces. C# Collections, слайд №7
Описание слайда:

Слайд 8





FCL .Net Interfaces
Описание слайда:
FCL .Net Interfaces

Слайд 9


Interfaces. C# Collections, слайд №9
Описание слайда:

Слайд 10


Interfaces. C# Collections, слайд №10
Описание слайда:

Слайд 11





Task 5-1.
Develop interface IFlyable with method Fly().
Create two classes Bird (with fields: name and canFly) and Plane  (with fields: mark and highFly) , which implement interface IFlyable.
Create List of IFlyable objects and add some Birds and Planes to it. Call Fly() method for every item from the list of it.
Описание слайда:
Task 5-1. Develop interface IFlyable with method Fly(). Create two classes Bird (with fields: name and canFly) and Plane (with fields: mark and highFly) , which implement interface IFlyable. Create List of IFlyable objects and add some Birds and Planes to it. Call Fly() method for every item from the list of it.

Слайд 12





C# Collections
.NET framework provides specialized classes for data storage and retrieval.
There are two distinct collection types in C#: 
The standard collections from the System.Collections namespace 
The generic collections  from System.Collections.Generic. 
 Generic collections are more flexible and safe, and are the preferred way to work with data. 
Описание слайда:
C# Collections .NET framework provides specialized classes for data storage and retrieval. There are two distinct collection types in C#: The standard collections from the System.Collections namespace The generic collections from System.Collections.Generic.  Generic collections are more flexible and safe, and are the preferred way to work with data. 

Слайд 13





C# Collections
Описание слайда:
C# Collections

Слайд 14





ArrayList
ArrayList is a special array that provides us with some functionality over and above that of the standard Array. 
Unlike arrays, an ArrayList can hold data of multiple data types. 
We can dynamically resize it by simply adding and removing elements.
Описание слайда:
ArrayList ArrayList is a special array that provides us with some functionality over and above that of the standard Array. Unlike arrays, an ArrayList can hold data of multiple data types. We can dynamically resize it by simply adding and removing elements.

Слайд 15





ArrayList
Описание слайда:
ArrayList

Слайд 16





ArrayList
Описание слайда:
ArrayList

Слайд 17





List<T>
 List<T> is a strongly typed list of objects that can be accessed 
by index.
It can be found under System.Collections.Generic namespace
Описание слайда:
List<T>  List<T> is a strongly typed list of objects that can be accessed by index. It can be found under System.Collections.Generic namespace

Слайд 18





List
Описание слайда:
List

Слайд 19





Using IEnumerable interface
Описание слайда:
Using IEnumerable interface

Слайд 20





Dictionary
A Dictionary, also called an associative array, is a collection of unique keys and a collection of values
Each key is associated with one value. 
Retrieving and adding values is very fast.
Описание слайда:
Dictionary A Dictionary, also called an associative array, is a collection of unique keys and a collection of values Each key is associated with one value. Retrieving and adding values is very fast.

Слайд 21





Dictionary
Dictionary where we map domain names to their country names:
Retrieve values by their keys and print the number of items:  
Print both keys and values of the dictionary:
Описание слайда:
Dictionary Dictionary where we map domain names to their country names: Retrieve values by their keys and print the number of items:  Print both keys and values of the dictionary:

Слайд 22





Queue
A Queue is a First-In-First-Out (FIFO) data structure.
 The first element added to the queue will be the first one to be removed. 
Queues may be used to process messages as they appear or serve customers as they come. 
Methods:
Clear(); removes all elements from the Queue.
Contains(object obj); determines whether an element is in the Queue.
Dequeue(); removes and returns the object at the beginning of the Queue.
Enqueue(object obj); adds an object to the end of the Queue.
ToArray(); Copies the Queue to a new array.
Описание слайда:
Queue A Queue is a First-In-First-Out (FIFO) data structure. The first element added to the queue will be the first one to be removed. Queues may be used to process messages as they appear or serve customers as they come. Methods: Clear(); removes all elements from the Queue. Contains(object obj); determines whether an element is in the Queue. Dequeue(); removes and returns the object at the beginning of the Queue. Enqueue(object obj); adds an object to the end of the Queue. ToArray(); Copies the Queue to a new array.

Слайд 23





Queue
Описание слайда:
Queue

Слайд 24





Stack

A stack is a Last-In-First-Out (LIFO) data structure. 
The last element added to the queue will be the first one to be removed. 
The C language uses a stack to store local data in a function. The stack is also used when implementing calculators.
Описание слайда:
Stack A stack is a Last-In-First-Out (LIFO) data structure. The last element added to the queue will be the first one to be removed. The C language uses a stack to store local data in a function. The stack is also used when implementing calculators.

Слайд 25





Stack
Описание слайда:
Stack

Слайд 26





Task 5-2. Collections
Declare myColl of 10 integers and fill it from Console.
	1) Find and print all positions of element -10 in the collection
	2) Remove from collection elements, which are greater then 20.  
                  Print collection
	3) Insert elements 1,-3,-4 in positions 2, 8, 5. Print collection
	4) Sort and print collection 
 Use next Collections for this tasks: List and ArrayList
Описание слайда:
Task 5-2. Collections Declare myColl of 10 integers and fill it from Console. 1) Find and print all positions of element -10 in the collection 2) Remove from collection elements, which are greater then 20. Print collection 3) Insert elements 1,-3,-4 in positions 2, 8, 5. Print collection 4) Sort and print collection Use next Collections for this tasks: List and ArrayList

Слайд 27





Homework 5
Описание слайда:
Homework 5

Слайд 28


Interfaces. C# Collections, слайд №28
Описание слайда:



Похожие презентации
Mypresentation.ru
Загрузить презентацию