© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
V. SarcarTest Your Skills in C# Programming https://doi.org/10.1007/978-1-4842-8655-5_5

5. Inheritance

Vaskaran Sarcar1  
(1)
Garia, Kolkata, West Bengal, India
 
No one likes to write the same code repeatedly to create an application. In fact, novice programmers often like to copy and paste existing code and then modify that code to fulfill a need. An expert programmer knows that this is not a recommended practice. Why? The short and simple answer is that you inherit any existing bugs. In addition, when you copy and paste a code segment and start using it in different parts of your application, you introduce lots of duplicate code. As a result, the overall maintenance ...

Get Test Your Skills in C# Programming: Review and Analyze Important Features of C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.