Object oriented programming uses different set of programming language as compared to older procedural programming language(like Pascal, C, etc).OOPS are based on the concept of “objects” , which contains the data, in the form of field which is also
A class definition serves as a template from which we create objects for the use of our application code
Inheritance means parent class property access child class like methods, members etc, and also reused code, reason for using Inheritance is desirable because we can avoid writing code over and over again.
Interfaces define properties, methods, and events, which are the members of the interface. Interfaces contain only the declaration of the members. It is the responsibility of the deriving class to define the members.
A Method without any method body is known as an abstract, what the method contain only declaration without any implementation & should be declare by only the ‘abstract modifier’.
Method overriding is a feature that allows you to invoke functions (that have same signatures) that belong to different classes in the same hierarchy of inheritance using the base class reference.
Method overloading is a feature which allows a class to have two or more methods having same name but different signature means (multiple behavior but different signature).
In my last post, i explained about role of object in oops language. Now, we more elaborate it with some e.g.
In this article, I’m explaining about oops in .Net
Inheritance is the ability to create a class from another class, the "parent" class, extending the functionality and state of the parent in the derived, or "child" class.