lecture 1
lecture 1
languages
Lecture 1
Aspects of programming languages
C
Pascal
Fortran
BASIC
Procedural Programming
Haskell
Erlang
Lisp
Scala
F#
Examples of Functional Programming Languages
Following the array example, the computer still iterates over the
array like in a for loop, but as programmers we don't need to
code that directly. What declarative programming does is to hide
away that complexity from the direct view of the programmer.
Key Characteristics of Declarative Programming
Encapsulation:
● The bundling of data (attributes) and methods
(functions) that operate on the data into a single unit or
class. It restricts direct access to some of an object's
components, which can prevent the accidental
modification of data.
Key Concepts of OOP
Inheritance:
● A mechanism where a new class inherits
properties and behavior (methods) from an
existing class. This promotes code reusability
and establishes a natural hierarchy.
Key Concepts of OOP
Polymorphism:
● The ability to present the same interface for
different underlying data types. It allows methods
to do different things based on the object it is
acting upon, even if they share the same name.
Key Concepts of OOP
Abstraction:
● The concept of hiding the complex implementation details
and showing only the necessary features of an object. It
helps in reducing programming complexity and effort.
Examples of OOP Languages
Java
C++
Python
Ruby
C#
Examples of OOP Languages