Class Flashcards
Abstraction in C#
Process of showing only essential information to user
Missing or incomplete implementation
Abstract class
base class cannot be used to create objects only can be accessed from inherited objects cannot be static class cannot have multiple inheritance cannot be inherited from structures
Abstract method
used only in abstract class without body and can be used by derived/inherited class
default access modifier
most restricted acess to that member
class —> internal
Indexer
Instance of a class or struct to be indexed as an array
Arguments to console application
string array object
DDL commands
Create, alter, truncate, drop
DML commands
Insert, update, delete,select
Default constructor parameters
zero. when no constructor defined
Connection pooling
Cache of the connection established so as to reuse when further requests to the database
struct / structure
value type – single variable hold related info/record
Cardianility
Relationship is one to one, one to many or many to many
Inheritance
Allow to define a class in terms or another class from one base class only Object class is the ultimate base class struct does not support inheritance
Restriction to be a Base class
Only time class cannot be used as base class
- sealed
- only private constructors
Polymorphism
Class to have multiple implementations with the same name
Static/Compile time polymorphism –>Early Binding
–>overloading
Dynamic/Runtime polymorphism —>Late Binding
–>overridng
Access base class virtual member
base.A()
shadowing
using 'new' keyword to hide the base class member [method hiding]
nested class
class inside another class to logically group --->encapsulation
encapsulation
data hiding –>mark all variables as private and use public get set method to access data
or hiding the complexity
Garbage collection
The process of releasing memory
root
storage location with the reference to an object in managed heap
clrMD
Diagnostics. Runtime inspect crash dump and attach to live process and perform all sorts of queries against the runtime
MongoDb`
Collection and concepts
Database is a physical container of collections
Database –>Collection of documents/tables
Document–>Row or key value pairs
Hexadecimal
0-9 ABCDEF
Dynamic variable
Change variable type at run time based on assigned value
ExpandoObject
Will let you add objects at runtime