Announcement

Collapse
No announcement yet.

What is inheritance?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is inheritance?

    Inheritance allows one class to reuse the state and behavior of another class. The derived class inherits the properties and method implementations of the base class and extends it by overriding methods and adding additional properties and methods.
    Asthijivak | Slim Shaper | Fat Cutter

  • #2
    Hey,
    Inheritance can be defined as the process where one class acquires the properties of another. With the use of inheritance the information is made manageable in a hierarchical order.
    http://keenesystems.com/Services/Sof...velopment.aspx

    Comment


    • #3
      In object-oriented programming, inheritance is when an object or class is based on another object (prototypal inheritance) or class (class-based inheritance), using the same implementation (inheriting from an object or class) or specifying a new implementation to maintain the same behavior (realizing an interface; inheriting behavior; programming by difference). Such an inherited class is called a subclass of its parent class or super class. It is a mechanism for code reuse and to allow independent extensions of the original software via public classes and interfaces. The relationships of objects or classes through inheritance give rise to a hierarchy. Inheritance was invented in 1967 for Simula. The term "inheritance" is loosely used for both class-based and prototype-based programming, but in narrow use is reserved for class-based programming (one class inherits from another), with the corresponding technique in prototype-based programming being instead called delegation (one object delegates to another).
      Inheritance should not be confused with subtyping. In some languages inheritance and subtyping agree,[a] whereas in others they differ; in general, subtyping establishes an is-a relationship, whereas inheritance only reuses implementation and establishes a syntactic relationship, not necessarily a semantic relationship (inheritance does not ensure behavioral subtyping). To distinguish these concepts, subtyping is also known as interface inheritance, whereas inheritance as defined here is known as implementation inheritance or code inheritance.[5] Still, inheritance is a commonly used mechanism for establishing subtype relationships.
      Inheritance is contrasted with object composition, where one object contains another object (or objects of one class contain objects of another class); see composition over inheritance. Composition implements a has-a relationship, in contrast to the is-a relationship of subtyping.
      Instamate 2.0 Review - The Must-Have Tool For YOUR INSTAGRAM Business. | Jimdo | Wordpress | Hatenablog

      Comment


      • #4
        These is an object oriented concepts these allow a class to use the properties and methods of another class
        Web designer jobs in bangalore | Graphic designer jobs in bangalore

        Comment


        • #5
          Inheritance is the process of creating a new class from the existing class..

          Comment

          Working...
          X