Professional Documents
Culture Documents
Task 3 - Object Oriented Language Investigation-Diaz Madrigales Jessica Mec 5a
Task 3 - Object Oriented Language Investigation-Diaz Madrigales Jessica Mec 5a
Author:
MEC 5A
Altamira, Tamaulipas.
22 February of 2023.
2
DEFINITION
Object Oriented Language
Programming
Object-oriented language (OOL) is a high-level computer programming language
that implements objects and their associated procedures within the programming
context to create software programs.
• Encapsulation.
• Inheritance.
3
SYNTAX OR STRUCTURE
For create functions
C++ provides some pre-defined functions, such as main(), which is used to execute
code. But you can also create your own functions to perform certain actions.
To create (often referred to as declare) a function, specify the name of the function,
followed by parentheses ():
Declaration: the return type, the name of the function, and parameters (if any)
Definition: the body of the function (code to be executed)
4
EXAMPLES IN C++
LANGUAGE
Example 1: Inside main, call myFunction():
Example 3: