C# LANGUAJE

Páginas: 18 (4450 palabras) Publicado: 25 de octubre de 2014
Programaci´
on
Orientada a Objetos
C#

F´elix G´omez M´armol
3o Ingenier´ıa Inform´atica
Julio de 2004

2

´Indice general
´
Indice General

4

2. Clases y Objetos
2.1. Clases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1.1. Estructura . . . . . . . . . . . . . . . . . . . . . . .
2.1.2. Ocultaci´on de la informaci´on . . . . . . . . . . . . .
2.1.3.Relaciones entre clases: Cliente-Servidor y Herencia
2.1.4. Visibilidad . . . . . . . . . . . . . . . . . . . . . . .
2.2. Objetos . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3. Mensajes . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.1. Sintaxis. Notaci´on punto . . . . . . . . . . . . . . . .
2.3.2. Sem´antica . . . . . . . . . . . . . . . . . . . . . . . .
2.4.Sem´antica referencia versus sem´antica almacenamiento . . .
2.5. Creaci´on de objetos . . . . . . . . . . . . . . . . . . . . . .
2.5.1. Destructores . . . . . . . . . . . . . . . . . . . . . .
2.6. Sem´antica de la asignaci´on e igualdad entre objetos . . . . .
2.7. Genericidad . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.8. Definici´on de una clase “Lista Doblemente Enlazada” . . ..
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
..
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

5
5
5
7
8
9
10
10
10
10
11
11
12
12
14
14

3. Dise˜
no por Contrato: Asertos y Excepciones
3.1. Contrato software . . . . . . . . . . . . . . . .
3.2. Clases y Correcci´on del software: Asertos . .
3.3. Excepciones en C# . . . . . . . . . . . . . . .
3.3.1. Lanzamiento de excepciones . . . . . .
3.3.2.Bloques try . . . . . . . . . . . . . . .
3.3.3. Manejadores . . . . . . . . . . . . . .
3.4. Conversi´on de asertos en excepciones . . . . .
4. Herencia
4.1. Introducci´on . . . . . . . . . . . . . . . . .
4.2. Doble aspecto de la herencia . . . . . . . .
4.3. Polimorfismo . . . . . . . . . . . . . . . .
4.3.1. Sobrecarga . . . . . . . . . . . . .
4.3.2. Regla de aplicaci´on de propiedades4.3.3. Estructuras de datos polim´orficas .
4.3.4. Operadores is y as . . . . . . . .
4.4. Ligadura Din´amica . . . . . . . . . . . . .
4.5. Clases Diferidas . . . . . . . . . . . . . . .
4.5.1. Interfaces . . . . . . . . . . . . . .
4.6. Herencia, reutilizaci´on y extensibilidad del
4.7. Herencia m´
ultiple . . . . . . . . . . . . . .
3

.
.
.
.
.
.
.

.
.
.
.
.
.
.

..
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

17
17
17
18
20
21
22
22

. . . . .
. . . . .
. . . . .
. . . . .
.. . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
software
. . . . .

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
..
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

25
25
26
26
27
29
29
29
30
31
32
34
37

.
.
.
.
.
.
.

.
.
.
.
.
.
.

4

´
INDICE GENERAL

4.7.1....
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • languaje de programación C
  • A Universal Languaje
  • languajes de programacion
  • Naturale Languaje
  • Languaje
  • Body Languaje China
  • Learning a new languaje
  • Xtensible Markup Languaje XML

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS