C# Programming Flashcards
Procedural programming
code executes sequential line by line
Object Orientated Programming
language that uses classes and objects to build models based on the real world
Classes
A user defined blueprint from which objects are instantiated. Consists of common properties and methods.
what do classes do
Defines properties and method set that are common to all objects of that type.
Object
variable with state (values), instantiated from classes.
Base Class
A parent class which is inherited from
Derived Class
A child class which inherits properties and methods from a base class
Polymorphism
Allows inherited properties and methods in a derived class to be overridden through the use of the “virtual” and “override”
Encapsulation
process of data hiding achieved with access modifiers (public/private/protected)
Constructor
A method which is executed immediately when an object is instantiated.
Aggregation
Using classes in other classes. Used classes NOT destroyed when the host class is destroyed.
In (UML) it’s represented by a white diamond
line. Going Towards
Composition
Using classes in other classes. Used classes ARE destroyed when the host class is destroyed.
In (UML) it’s represented by a black diamond
line. Going away.
Overloading
creating a method with the same name as another method,
but different number of parameters or other datatype
Private/Protected/Public/
Can only be accessed within the same class./
Can only be accessed within the same class and inherited classes./
Can be accessed by any other code outside of the class it was defined in./
Abstract
A class which defines properties and methods without any implementation