Understand Inheritance and Polymorphism

Practice Labs Module
Difficulty
Intermediate

The "Understand Inheritance and Polymorphism" module provides you with the instructions and devices to develop your hands on skills in the following topics: Creating base class and derived classes using C# console application in Visual Community 2013, Using base class and derived classes to demonstrate inheritance in C#, Creating base class...

Join over 3 million cybersecurity professionals advancing their career
Sign up with
or

Already have an account? Sign In »

Overview

Introduction

The Understand Inheritance and Polymorphism module provides you with the instructions and devices to develop your hands on skills in the following topics.

  • Creating base class and derived classes using C# console application in Visual Community 2013
  • Using base class and derived classes to demonstrate inheritance in C#
  • Creating base class and derived class using C# console application in Visual Studio 2013
  • Using base class and derived class to demonstrate polymorphism in C#

Exercise 1 - Understand Inheritance

In this exercise, you will learn to create a base class in C#. You will then create derived classes from the base class. You will develop a program using base class and derived classes to demonstrate the concept of inheritance.

Inheritance, in object oriented programming, is a concept where the objects of derived classes inherit or acquire the properties and methods of base class.

Exercise 2 - Understand Polymorphism

In this exercise, you will learn to create a base class in C#. You will then create derived classes from the base class. You will develop a program using base class and derived classes to demonstrate the concept of polymorphism.

Polymorphism, in object oriented programming, is a concept where entities such as variables, functions, or objects can acquire multiple forms.

Learning Partner
Comprehensive Learning

See the full benefits of our immersive learning experience with interactive courses and guided career paths.