Open Access
Subscription Access
Open Access
Subscription Access
A Complete Inter-Class Sharing During the Inheritance to Enhance Reusability of Public Data and their Access Control Using Dominance
Subscribe/Renew Journal
Inheritance is used for reusability in an object oriented programming language. The complete reusability is not possible with the simple inheritance process. On inheriting parent class, the child does not get a complete access to the inherited data. Only an instance of the values of inherited data has been accessible by the child class and it is true even for the public data. The present communication is a concept paper in which a special inheritance method has been conceptualised. This proposed method is called backward accessibility inheritance. Once inherited, the public data item of the parent class can be shared by the child class in all sense. This way the inherited data item can be truly reused by child class in terms of memory space, name and value. To control the accessibility of the data during the backward accessibility inheritance, concept of dominance has also been introduced.
Keywords
Inheritance, Object Oriented Programming, Backward Accessibility, Dominance.
Subscription
Login to verify subscription
User
Font Size
Information
- Blumberg, R. B. (1997). Mendel Web, Edition 97.1, Retrieved from www.mendelweb.org.
- Inheritance. Retrieved from http://en.wikipedia.org/wiki/ Inheritance_(object-oriented_programming)
- Mendel G. (1965). Centenary of Mendel’s paper-Experiments in plant hybridization. British Medical Journal, 368-374.
- Mendel, G., Harwani, D., & Lakhani, J. (2015). Disambiguation of multiple inheritance in C++ using biological law of genetics. Academic Journal of Science, 3(3), 361-371.
- Object Oriented Programming. Retrieved from http://en.wikipedia.org/wiki/Object-oriented_programming.
- Rambaugh, J. (1991). Object oriented modeling and design. Prentice Hall.
Abstract Views: 363
PDF Views: 0