PLDB
Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon

Inheritance

< >
class B {} class A extends B {}
Example from Python, Cython:
class SumComputer(object): def __init__(self, a, b): self.a = a self.b = b def transform(self, x): raise NotImplementedError def inputs(self): return range(self.a, self.b) def compute(self): return sum(self.transform(value) for value in self.inputs()) class SquareSumComputer(SumComputer): def transform(self, x): return x * x class CubeSumComputer(SumComputer): def transform(self, x): return x * x * x

Languages with Inheritance include Java, JavaScript, Python, PHP, Scala, TypeScript, Dart, CoffeeScript, Groovy, Pug, SystemVerilog, Cython, C3, Twig, Pizza, Apex, spider, JS++, SpiderBasic, Deesel, Static Typescript

Languages without Inheritance include progsbase

Read more about Inheritance on the web: 1.

HTML of this page generated by Features.ts

hasInfixNotation.html 路 hasInheritance.html 路 hasIntegers.html

View source

PLDB - Build the next great programming language Search v2023 Day 157 Docs Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com