Inheritance : One of the most important concepts in - TopicsExpress



          

Inheritance : One of the most important concepts in object-oriented programming is that of inheritance. Inheritance allows us to define a class in terms of another class, which makes it easier to create and maintain an application. This also provides an opportunity to reuse the code functionality and fast implementation time. When creating a class, instead of writing completely new data members and member functions, the programmer can designate that the new class should inherit the members of an existing class. This existing class is called the base class, and the new class is referred to as the derived class. Base and Derived Classes A class can be derived from more than one class or interface, which means that it can inherit data and functions from multiple base class or interface. The syntax used in C# for creating derived classes is as follows: class { ... } class : { ... }
Posted on: Thu, 14 Aug 2014 05:51:11 +0000

Trending Topics



Recently Viewed Topics




© 2015