Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

Inheritance in javascript

25.7K views
•
September 3, 2020
by
Hitesh Choudhary
YouTube video player
Inheritance in javascript

TL;DR

Learn about inheritance, polymorphism, and abstraction in JavaScript in a simplified and easy-to-understand way.

Transcript

just because in the title I Sayed inheritance you don't need to get stiff up lose up it's easy and I know you have heard all the wrong things about inheritance polymorphism and abstraction all these jargon words but the concepts are really really simple let me show you and you're gonna love this one here so notice here first and foremost what we di... Read More

Key Insights

  • 👪 Inheritance in JavaScript is achieved by using the "extends" keyword to create a child class that inherits properties and methods from a parent class.
  • 👪 Polymorphism allows for method overriding, where a child class can provide a different implementation of a method defined in the parent class.
  • 👪 The "super" keyword is used to access and call methods or constructors from the parent class in a child class.
  • 👶 Static properties can be used to create private properties that are not inherited by child classes, providing privacy and restricting access.
  • 🏛️ JavaScript's inheritance features simplify the process of building complex class hierarchies and allow for code reuse and modularization.
  • 😒 Understanding how to use inheritance, polymorphism, and abstraction is essential for writing efficient and maintainable code in JavaScript.
  • 👨‍💻 JavaScript's inheritance model provides flexibility and versatility in creating object-oriented code.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How does inheritance work in JavaScript?

Inheritance in JavaScript is achieved by using the "extends" keyword to define a child class that inherits properties and methods from a parent class.

Q: What is polymorphism and how does it work in JavaScript?

Polymorphism in JavaScript allows you to override methods from a parent class with different implementations in a child class. This means that objects created from the child class can use the overridden method instead of the one defined in the parent class.

Q: What is the "super" keyword used for in JavaScript?

The "super" keyword is used to access and call methods or constructors from the parent class in a child class. It is often used when overriding methods to maintain functionality from the parent class.

Q: How can static properties be used in JavaScript inheritance?

Static properties can be used to create private properties that cannot be inherited by child classes. This allows certain properties or methods to be restricted and not accessible to objects created from the child class.

Summary & Key Takeaways

  • Inheritance allows a child class to inherit properties and methods from a parent class by using the "extends" keyword. This allows the child class to access and use the parent class's functionality.

  • Polymorphism in JavaScript allows you to override methods from the parent class with different implementations in the child class. This means that objects created from the child class can use the overridden method instead of the one defined in the parent class.

  • The "super" keyword and static properties can be used to access and modify properties and methods from the parent class in the child class.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Hitesh Choudhary 📚

creating a video player in java at 4 in morning thumbnail
creating a video player in java at 4 in morning
Hitesh Choudhary
Android studio 3 - Create hello world App in Kotlin thumbnail
Android studio 3 - Create hello world App in Kotlin
Hitesh Choudhary
Capacitor by Ionic - Successor of Cordova and phonegap thumbnail
Capacitor by Ionic - Successor of Cordova and phonegap
Hitesh Choudhary
God Father of AI warns about AI risks thumbnail
God Father of AI warns about AI risks
Hitesh Choudhary
WildCard Character Regular expressions thumbnail
WildCard Character Regular expressions
Hitesh Choudhary
Sunday Live 3 September, 2017 thumbnail
Sunday Live 3 September, 2017
Hitesh Choudhary

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.