Concept explainers
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.
- 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
- 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 - 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?
- 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.
- 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?
- What questions do you currently have on Inheritance or Polymorphism.
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
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps
- draw this out on a piece of paper showing the relationship please: Using MySQL Modeler, draw the ERD that represents the following scenarios. You can put the diagramson the same page to turn in and save as a PDF. (File – Print to File – PDF format).Scenario 1:Production companies make one or more movies. Movies have a title, duration, Director name, andRating. The Production company has a name, the year it was established, and the city and state whereits headquarters are located. A movie is made by exactly one production company.Not null attributes: Production company name, movie title, director name, and rating.Scenario 2:A company has a number of employees. Each employee has an employee ID, first and last name,address (street address, city, state, and zip) and birthdate. The company has one or more projects. Theattributes of a project include project ID, project name, start date, end date, and budget. Eachemployee may be assigned to one project, or may not be assigned to any…arrow_forwardLabel each phrase as either interpretation sharing, projection sharing, or fact sharing. Note: each information sharing type is used once. Diesel is leaking from the ship onto the dock. Answer (circle one): interpretation sharing, projection sharing, fact sharing. There is a fire station near the diesel leak. Those firefighters have been trained to respond to small diesel spills. Answer (circle one): interpretation sharing, projection sharing, fact sharing. If the ship leaks more than 10,000 gallons of diesel, then we will need to send in additional firefighters and specialized equipment trucks through Route B. Answer (circle one): interpretation sharing, projection sharing, fact sharing.arrow_forwardKevin is looking for information on two different topics using a Boolean operator. Kevin needs to use which Boolean operator to get the right search results.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education