Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

Question

This week's lab will be on Inheritance. For the pre-lab, I am asking you to preview some materials on inheritance. Because we have not covered it in the lab yet, it is alright if the materials do not make complete sense. But, be sure to post in the discussion what parts are confusing to you and if you come up with any questions.

  1. Please watch this video. Some of the definitions come up pretty fast, so I would recommend pausing it to read them. https://www.youtube.com/watch?v=v9Qb73QdvoE
  2. This next video shows a bit more about why we use inheritance and what polymorphism is. Just as a refresher on some terminology. Structured programming refers to just using a main method and other methods to create and run a program. Object Oriented Program (OOP) is using Classes and Objects to group variables and methods together into a single structure. https://www.youtube.com/watch?v=gWpg3yMiL0M
  3. In the video above, the functionality of a method for the child class is changing from the original parent implementation. Changing functionality from the parent class is called Polymorphism. What topic that we already covered can help a class make its own version of a method, with different functionality than the original?
  4. Find and read one article on Inheritance and post it as part of your discussion. Some of these articles can be pretty lengthy, I am expecting that you spend about 5-10 min on this part of the assignment, so If you only read part of an article that is fine.
  5. In your own words what is inheritance? The example in the video mentioned how an account can be the parent of both savings and checking. Can you give an example of inheritance in the real world?
  6. What questions do you currently have on Inheritance or Polymorphism.
Expert Solution
Check Mark
Step 1 Inheritance

Inheritance is an important building block of object oriented programming.

It is a mechanism by which one class is allowed to inherit the features like fields and methods of another class.

simply, one class inherits properties of other class.

Real time example: 

I want to read a book.

1. I will go to book shop and i will buy new book.

2. I will ask my friend for book.

Different types of inheritance:

a. single inheritance

b. multilevel inheritance

c. Hierarchical inheritance

d. Hybrid inheritance

 

 

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education