25
edits
Changes
→Language Basics
=== Language Basics ===
==== Keywords Variables ====
The variable declaration requires a type or initializer.
==== Classes: ====
A class is a type of collection that collects ''variables'', ''procedures'' and ''iterators''. We use '''class''' keyword to declare a new class type and use '''new''' keyword to create its instaceinstance.
class myClass {
Records are similar to classes. '''Records''' doesn't support inheritance and virtual dispatch but it supports copy constructor and copy assignment. And record variables refer to a distinct memory.
=== Iterators ===