Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

implement vs extend nestjs

Thebetta answered on June 16, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • nestjs init
  • configure nest js
  • NestJS vs Node.js: What are the differences?
  • nestjs CASL
  • Entity in nestjs
  • nestjs called once method
  • nest js decorator
  • Inject nestjs service from another module
  • Entity in nestjs
  • nestjs code example
  • extend vs implement in java
  • nest js decorator
  • append vs extend
  • append vs extend
  • jwtstrategy nestjs options
  • Entity in nestjs
  • Entity in nestjs
  • Entity in nestjs
  • Entity in nestjs

  • implement vs extend nestjs

    0

    Short version

    extends means:

    The new class is a child. It gets benefits coming with inheritance. It has all the properties and methods of its parent. It can override some of these and implement new ones, but the parent stuff is already included.

    implements means:

    The new class can be treated as the same "shape", but it is not a child. It could be passed to any method where Person is required, regardless of having a different parent than Person.


    Long version 

    check the source

    Popularity 3/10 Helpfulness 1/10 Language javascript
    Link to this answer
    Share Copy Link
    Contributed on Jun 16 2023
    Thebetta
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.