C# Flashcards
_______ means “many forms”, and it occurs when we have many classes that are related to each other by inheritance. Inheritance lets us inherit attributes and methods from another class. ________ uses those methods to perform different tasks.
Polymorphism
May or may not include ______ methods. Also cannot be instantiated, but they can be subclasses. A method declared without an implementation. If a class includes_____ methods, then the class itself must be declared ______?
Abstract Methods and Classes
Abstract type that contains a collection of methods and constant variables. It is one of the core concepts in java, and used to achieve abstraction, polymorphism and multiple inheritances.
Interfaces
Two or more methods may have the same name if they differ in parameters(different number of parameters, different types of parameters, or both). These methods are called overloaded methods and this feature is called method ______?
Overloading
______ occurs when a subclass (child class) has the same method as the parent class. In other words, ______ occurs when a subclass provides a particular implementation of a method declared by one of its parent classes.
Overriding
This function or method type in an OOP language is used to override the behavior of the function or method in an inherited class with the same signature to achieve the polymorphism.
Virtual Method
ways of parameter passing, one way doesn’t require initialization.
out, in, ref
Is a concept that acquires the properties from one class to other classes; for example, the relationship between father and son. Is a process of acquiring all the behaviors of a parent object.
Inheritance
A _____ between two objects associated with each other exists when there is a strong relationship between one class and another. Other classes cannot exist without the owner or parent class.
Composition
Is a keyword for creating a structure that contains variables, methods, different types of constructors, operators, etc. It is similar to classes that hold different types of data and has a value type. It creates objects which require less memory.
Struct
A template definition of the methods and variables in a particular kind of object. Thus, an object is a specific instance of this. Is one of the defining ideas of object-oriented programming.
Class
Is a method that is not bound to an identifier. Often used as arguments being passed to higher-order functions or used for constructing the result of a higher-order function that needs a return method.
Anonymous Method
Simply passing a duty off to someone or something else. Can be an alternative to inheritance. Means you use an object of another class an an instance variable, and forwards messages to the instance.
Delegates
Used for the export of variables, methods, and resources by name.
DLL(Dynamic Link Library)
managed .NET assemblies created using third-party tools and usually contains .NET code that can only access .NET supported libraries.
Managed plugins