Showing posts with label OOP Concepts. Show all posts
August 17, 2022
C#, C# Interview Questions, C# Tutorials, Inheritance, Method Overriding, OOP Concepts, Override Keyword, Runtime Polymorphism, Virtual Keyword
Difference Between virtual and override Keywords in C#
1. virtual Keyword in C# The virtual keyword is used to modify a method, property, indexer, or event declaration in a base class. It allow...
Read more →
August 14, 2022
C#, C# Interview Questions, C# Keywords, C# Tutorials, Const Keyword, Fields, OOP Concepts, Readonly Keyword, Variables
Difference Between const and readonly in C# with Examples
In C#, both const and readonly keywords are used to define values that cannot be changed after initialization. However, there are some imp...
Read more →
August 12, 2022
C#, C# Interview Questions, C# Keywords, C# Tutorials, Inheritance, Instance Creation, Method Hiding, New Keyword, OOP Concepts
new Keyword in C# – Instance Creation and Method Hiding Explained
The new keyword in C# is used in different ways. Two common uses are: Instance Creation Method Hiding Let's understand both uses with e...
Read more →
August 9, 2022
C#, C# Interview Questions, C# Keywords, C# Tutorials, Constructor Chaining, Constructors, OOP Concepts, This Keyword
this Keyword in C# – Explained with Examples
The this keyword in C# is used to refer to the current instance of a class. It allows you to access the current object's fields, proper...
Read more →
August 8, 2022
Base Keyword, C#, C# Interview Questions, C# Keywords, C# Tutorials, Constructors, Inheritance, Method Overriding, OOP Concepts
base Keyword in C# – Explained with Examples
The base keyword in C# is used in a derived class to access members of its immediate base class, such as methods, fields, properties, and c...
Read more →