Explain concept of inheritance with support of example, Database Management System

Assignment Help:

Explain concept of inheritance with support of suitable example.

Inheritance

Inheritance is one of milestone of object-oriented programming language as it allows a creation of hierarchical classifications. Using inheritance we can create a general class which defines trails common to a set of related items. More particular classes can inherit this class and each can add a certain exceptional thing to the resulting new class. The class which inherits from another, class or classes is termed as derived class or subclass and the class/classes from which derived class is made is called as a base class or a super class. For illustration, racing cars, Pick up cars and saloons etc. are all dissimilar kinds of cars in object-oriented terminology racing cars. Pick up cars, and saloons etc. are all subclasses of car class. Also, as illustrated in Figure, below, the car class is super class of sub classes like racing cars, sedans, saloons, convertibles, etc.

 


Related Discussions:- Explain concept of inheritance with support of example

Explain the need for the bcnf normal form, Surgeons identified by doctor ID...

Surgeons identified by doctor ID (DOCID) operate on patients identified by patient ID (PATID) in operating theaters identified by room numbers (ROOMNO). Each surgeon can operate on

What is primary index, Primary Index In primary index, there is a one-t...

Primary Index In primary index, there is a one-to-one relationship among the entries in the index table and the records in the major table. Primary index can be of two types:

How to rearrange classes and operations, Rearrange Classes and Operations ...

Rearrange Classes and Operations Sometimes, the similar operation is defined across different classes and can easily be inherited from a familiar ancestor, but more often oper

How does the two phase protocol ensure serializability, How does the two ph...

How does the two phase protocol ensure serializability in database schedules?   Ans:  A transaction is termed to follow the two-phase locking protocol if all locking operations

Ans the following, discuss the array implementation of a stack.

discuss the array implementation of a stack.

Economics, Economics: It is now usually accepted that it costs less to make...

Economics: It is now usually accepted that it costs less to make a system of smaller computers with the equivalent power of a one large computer. It is more cost-effective to get s

What is association, What is association? Give an example of association ...

What is association? Give an example of association Association is used for establishing relationships among classes. Association describe links among/between classes. For exa

Determine the three views of data, Determine the Three Views of Data We...

Determine the Three Views of Data We know that the similar thing, if viewed from dissimilar angles produces difference sights. Similarly, the database that we have formed alrea

What is the use of a slotted-page structure, What is the use of a slotted-p...

What is the use of a slotted-page structure and what is the information are there in the header? The slotted-page structure is used for organizing records within a one block.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd