Final Flashcards
encapsulation
classes and objects can hide information from the outside world
Polymorphism
The fact that child classes can override the methods and attributes of the super class
inheritance
any class may inherit members from another class.
class modifiers
internal (or none)–Class accessible only from within the current project
public–Class accessible from anywhere.
abstract–accessible only from within the current project, and cannot be instantiated, only derived from.
public abstract–Class accessible from anywhere, and cannot be instantiated, only derived from.
sealed–cannot be derived from, only instantiated.
new
Applies To Function members
The member hides an inherited member with the same signature.
static
The member does not operate on a specific instance of the class
virtual
Classes and function members only
–The member can be overridden by a derived class.
abstract
Function members only–A virtual member that defines the signature of the member, but does not provide an implementation
override
Function members only–The member overrides an inherited virtual or abstract member.
sealed
Classes, methods, and properties–For classes, the class cannot be inherited from. For properties and methods, the member overrides an inherited virtual member, but cannot be overridden by any members in any derived classes. Must be used in conjunction with override.
extern
Static methods only–The member is implemented externally, in a different language.
properties
Sets of functions that can be accessed from the client as a
field. Improves data integrity.
Methods
Functions associated with a class. Can be static (tied to the
class) or instance (tied to the object).
Constructors
Special functions that run automatically when an object
is created. Good for initializing the values of fields
collections
Collections are similar to arrays in that they hold groups of objects.
Collections differ from arrays in that they provide advanced functionality such as:
Ability to grow once they are created
Controlled access to objects
Provide functions to search and sort
Ability to provide strongly typed collections
Ability to expose specialized methods