Page 214 - DCAP404 _Object Oriented Programming
P. 214

Unit 9: Inheritance




             to help children become Futurekids, creating a worldwide learning community that has  Notes
             integrated  the  power  of technology  to  facilitate  teachers  to  improve the  students’
             performance.’’
             But what is the awareness level among these students of the revolution  that is taking
             place?

             Says Suresh Kumar, “Contrary to popular belief, the awareness level is high among the
             rural children. The attitude of rural children is variably  different from  that of  urban
             children, who are motivated by learning for grades and marks, whereas the rural children
             learn out of interest.’’
             He feels the biggest challenge for players such as IT Kids is to fine-tune the curriculum to
             interest the rural children.
             “We are in the process of doing this,’’ he states.
             FutureSchools has also been counselling and helping students realise their career dreams.

             “In fact, we have been doing career counselling in many schools for Standards 9 and 10.
             Here we have concentrated on Government and rural schools where the awareness among
             parents is less.’’
             Both schools assert that all their courses are reasonably priced. While IT Kids charges
             between ` 40 and ` 60 per student per month, FutureSchools courses are between ` 40 and
             ` 180 per month per student.
             The rural and government schools are given a discount to encourage the IT movement in
             the country.
             As Ramya Srinivas, a Bangalore school teacher, puts it: “These courses have become a part
             of our curriculum. The success of these courses depends on how well integrated they are
             into the mainstream education.’’

          9.9 Summary

              Inheritance is the capability of one class to inherit properties from another class.

              It supports reusability of code and is able to simulate the  transitive nature of real life
               objects. Inheritance has many forms: Single inheritance, multiple inheritance, hierarchical
               inheritance, multilevel inheritance and hybrid inheritance.

              A subclass can derive itself publicly, privately or protectedly. The derived class constructor
               is responsible for invoking the base class constructor, the derived class can directly access
               only the public and protected members of the base class.
              When a class inherits from more than one base class, this is called multiple inheritance.
              A class may contain objects of another class inside it.

              his situation is called nesting of objects and in such a situation, the contained objects are
               constructed first before constructing the objects of the enclosing class.
              Single Inheritance: Where a class inherits from a single base class, it is known as single
               inheritance.
              Multilevel Inheritance: When the inheritance is such that the class. A serves as a base class
               for a derived class  B which is turn serves as a base class for  the derived class C. This type
               of inheritance is called ‘Multilevel Inheritance.’





                                           LOVELY PROFESSIONAL UNIVERSITY                                   207
   209   210   211   212   213   214   215   216   217   218   219