1/23
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Inheritance
is a principle of object-oriented programming allowing a child class to reuse or inherit the behavior of a parent class.
derived class or subclass
The inheriting class is called a derived class or subclass.
base class or superclass
The existing class whose members are being inherited is called base class or superclass.
single inheritance
refers to the C# programming language supporting a subclass inheriting from only one superclass.
private
Declaring superclass members as ______ prevents subclasses from modifying those members.
protected members
of a base class are inherited and accessible by their derived classes.
protected
The keyword _______ is used to declare a protected member.
base keyword
In C#, the _____ keyword specifies which constructor from the base class to invoke when creating instances of the derived class.
Method Overriding
it is redefining the functionality of an existing method.
override method
it should have the same method signature as the overridden method.
overridden method
it is from the base class should be declared as virtual.
virtual modifier
it specifies that a derived class can override the method in the base class.
override modifier
it modifies the abstract or virtual implementation of the inherited method and must match the same method signature.
abstract class
it is a base class that cannot be instantiated.
abstract
The ______ keyword is used to declare an abstract class, placed before the class name.
abstract method
is a header with an abstract modifier that has no implementation or method body.
Polymorphism
it means 'multiple forms' and is a fundamental concept of object-oriented programming.
Compile time polymorphism
it is implemented through method overloading.
method overloading
it is a method executes based on the number and type of parameters passed to it.
early binding
it refers to this process of determining method calls at compile time.
Runtime polymorphism
is when the compiler decides which method to call during runtime.
dynamic polymorphism
it is also called late binding, refers to the process of determining method calls at runtime.
late binding
_____________, or dynamic polymorphism, refers to the process where the method call is determined at runtime.
method overriding
is achieved by redefining an existing method within a derived class.