Classes ======= ```Example from 2 languages: JavaScript, TypeScript class Person {} ``` ```Example from 1 languages: Python class Person (object): def __init__(self, name): self.name = name ``` ```Example from 1 languages: Ruby # A tiny Person class in Ruby: class Person attr_accessor :name, :age, : # getter and setter methods def initialize(name, age) @name = name @age = age end end # Create a new Person object: person = Person.new("John", 30) puts person.name puts person.age # Change the age of the person: person.age = 35 puts person.age ``` ```Example from 1 languages: Chapel class ``` ```Example from 1 languages: Toit // Creating a custom class. class Point: x /int := 42 y /int := 103 ``` * Languages *with* Classes include JavaScript, Python, Java, C++, Ruby, PHP, TypeScript, C#, PowerShell, Swift, Scala, Kotlin, Haskell, CoffeeScript, Dart, Crystal, Reason, Chapel, Groovy, OCaml, F#, ABAP, SystemVerilog, Toit, Clean, X10, Angelscript, Apex, Aardvark, JS++, Speedie, Simula 67 * Languages *without* Classes include C, C3, Lil, C2, progsbase, SAKO * View all concepts with or missing a *hasClasses* measurement http://pldb.info/../lists/explorer.html#columns=rank~id~appeared~tags~creators~hasClasses&searchBuilder=%7B%22criteria%22%3A%5B%7B%22condition%22%3A%22null%22%2C%22data%22%3A%22hasClasses%22%2C%22origData%22%3A%22hasClasses%22%2C%22type%22%3A%22num%22%2C%22value%22%3A%5B%5D%7D%5D%2C%22logic%22%3A%22AND%22%7D missing http://pldb.info/../lists/explorer.html#columns=rank~id~appeared~tags~creators~hasClasses&searchBuilder=%7B%22criteria%22%3A%5B%7B%22condition%22%3A%22!null%22%2C%22data%22%3A%22hasClasses%22%2C%22origData%22%3A%22hasClasses%22%2C%22type%22%3A%22num%22%2C%22value%22%3A%5B%5D%7D%5D%2C%22logic%22%3A%22AND%22%7D with * Read more about Classes on the web: 1. https://en.wikipedia.org/wiki/Class_(computer_programming) 1. Built with Scroll v178.2.3