1/39
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Inheritance
The principle of object-oriented programming that allows the defining of a child class that reuses or inherits the behavior of a parent class.
Derived class or subclass
The inheriting class that inherits from another class.
Base class or superclass
The existing class whose members are being inherited.
Single inheritance
A feature of C# where a subclass can only inherit from a single superclass.
Transitive inheritance
The concept that members of a class can be inherited by derived classes through another derived class.
Namespace
A container that holds classes, such as Person and Student, to organize code.
Private members
Members of a base class that can be inherited by a derived class but are not accessible.
Protected members
Members of a base class that are inherited and accessible by derived classes.
Protected keyword
A keyword used to declare a protected member.
Calling base class constructors
The process of invoking constructors of a base class when creating instances of a derived class.
Base keyword
Used in C# to specify which base class constructor to invoke when creating instances of the derived class.
Method overriding
The ability of a derived class to inherit and redefine methods from its base class.
Overriding method
Declaring a method in a subclass that has the same name as a method in its parent class.
Virtual modifier
Specifies that a derived class can override a method in the base class.
Override modifier
Required to override a virtual method from the base class.
Abstract class
A base class that cannot be instantiated.
Abstract keyword
Used to declare an abstract class.
Abstract method
A method header that has no implementation, meant to be implemented by derived classes.
Polymorphism
The ability to present the same interface for different data types.
Compile time polymorphism
Also known as static polymorphism, implemented using method overloading.
Method overloading
The ability to have multiple methods with the same name but different parameters.
Early binding
When a method is bound to an object at compile time.
Runtime polymorphism
When the method to execute is determined at runtime.
Late binding
Another term for dynamic polymorphism, determining the method to call at runtime.
Method overriding (as runtime polymorphism)
Achieved when a derived class overrides a method from its base class.
Interface
A contract that contains method signatures, properties, and events.
Implementing class
The class that provides the implementation for interface members.
Instantiation of interface
Indicates that interfaces cannot be instantiated and only contain signatures.
Interface keyword
The keyword used to define an interface in C#.
Interface naming convention
A common practice is to start interface names with a capital I.
Interface member access
Members of an interface are public by default.
Colon symbol (:) for implementing
Used to indicate that a class implements an interface.
Matching method signature
The implementation in a class must match the signature in the interface.
Interface implementation rule
Ensures that all declared methods and properties in an interface are implemented.
Multiple interface implementation
A class can implement multiple interfaces while inheriting from only one base class.
Syntax for multiple interfaces
The colon (:) symbol is used to implement multiple interfaces in a comma-separated list.
Interface field restriction
Interfaces cannot contain instance variables or fields.
Interface property
A property that can manage a private data member of a class.
Property declaration syntax in interface
The syntax used to declare read (get) and write (set) properties in an interface.
Purpose of accessors in interface
Indicates that properties are read-write.