Comment

Comment by guinness74

Yes. The textbook examples really don't do practical applications justice though, e.g.:

  shape
  
  ...
  
  circle extends shape
I find it very useful to extend classes in an existing framework or system with a new functionality specific for my particular problem.

For a general example, sub-typing exceptions is useful.

parent guinness74 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton