Mapa mental
OOP - C#
Contenido del mapa
OOP - C#
Order of Program
- NameSpace
- A Collection of related classes
- Class
- Class: is a construct a blueprint of real world objects that allows you to group, model and define the methods and variables and the behavior types of the objects and elements within the class.
- Class: Field, Constructor, Properties, Method
- The order of a class should be: Field : private (data type); Constructor:
- Field: Public, Private or Static
- Static Variable stays inside the class . Instance Variable: is either Public or Private access modifier and can be used inside another "derived" class.
- Constructor
- Constructor is a special method in the class that is called when an object is created. It initializes class members when an instance of the class is created. In Class = public nameOfClass()* to call in main - nameOfClass obj = new nameOfClass()* *Depending on how its used the parameters can be included in the constructor
- Properties
- -Properties Protect the class -Fields with the {get; set;} accessors - prevents corruption or misuse of code -properties can have either get or set or both accessors
- Methods
- A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method arguments. In C#, every executed instruction is performed in the context of a method. A VERB
- Abstract Class
- Abstract : marks the parent class and prevents objects or instances of the class from being made in other classes.
- Method
- statement
- Object
- Object is an instance of a class, and they can be stored in either a named variable or in an array or collection
- NameSpace
Información
- Descripción
- Mapa Mental sobre OOP - C#, creado por Sharon P el 04/03/2017.
- Creado por
- Sharon P
- Visitas
- 0
- Valoración