Watch Free C# videos, Subscribe to our channel and Click on the bell icon for more updates.
For Best Courses Online Visit Our Website
This Video Inheritance Concepts in C#
Is recorded by Mr. Sandeep Soni,MCT
In this video we have covered the following topics:
1. Introduction to Inheritance
2. Constructors & Inheritance
3. Type casting of Reference Types
4. Static and dynamic binding
5. Abstract classes
Inheritance depends upon “is a” relationship.
Car is a Vehicle
Faculty is a Person
Student is a Person
Chair is a Furniture
Static and Dynamic Binding
Virtual methods are dynamically bound i.e., the actual method called would be decided at runtime and the decision
is based on the object to which the reference variable invoking the method is referring to.
Abstract Classes and Methods
1. An abstract method is a method in which declaration is provided
but implementation is not.
2. A class with one or more methods declared as abstract must be
declared as abstract and such a class cannot
be instantiated because its behavior is incomplete.
Every class in .NET is inherited from System.Object class. Thus the functionality in Object class is available to all the
objects in .NET. Also the reference variable of type System.Object can refer to instance/object of any class in .NET
Methods in Object class:
1. bool Equals(object obj) // Compares the current object reference
with obj and returns true if both are
referring to the same object otherwise returns false.
2. System.Type GetType() //returns the Type instance for the
current objects class.
For more details regarding https://www.bestdotnettraining.com/csharp-online-training
Visit Our Complete Video Tutorials channel
This Video Tutorial is thought by Mr. Sandeep Soni Microsoft Certified Trainer having 20 Years of IT Industrial Experience guided 100+ Corporate experts, about 50000 + students got prepared under his initiative.
In this instructional exercise, ideas are taught with ongoing Examples in simple and justifiable strategies for absolute beginners to cutting-edge levels.
Visit for More Video Tutorials provided by Microsoft Certified Trainer in MS.NET Technologies