- HubPages»
- Technology»
- Computers & Software»
- Computer Software
Understanding C++ Programming Language
Understanding Object Oriented Programming Language
C++ is one of the Object Oriented Languages, other examples of these languages include, jaza, visual basic and many others
Below are basic definitions you need to know as you start your journey into the programming world. Here we go
A class - in C++ this refers to a user defined data types whose variables are Objects
C++ member variable – in C++ member variables are variables declared within a class declaration also known as data member or member data
Member function – in C++ programming language this refers to function whose declaration are made within a class declaration and are used to manipulate data member or member variable. Objects in C++ is an instance of a class
Instantiation – The process of creating an object of a particular class
Access specifies –refers to a keyword that determines whether class member are accessible in various part of your program, and there are three types of access specifiers in C++ namely
- Public – allows all functions to be accessible within the whole programming area
- Protected – these specifiers are accessible to member function of the same class or the derived class
- Private – these specifiers are accessible through member function of the same class
Other definitions you need to know when getting started with C++ includes the following
Constructor – these are special kind of member function called automatically when a new Instance of a class is created
Destructor – are also special member function that is called automatically when an object of a particular class goes out of a scope
Members – refers to a variable or a function declared within a class
Parameter – elements use to communicate to the functions
Structure – in C++ a structure is a collection of a data items with different data types
Encapsulation – is the ability to group all data elements and functions that act on them as a single entity called class?
Function overloading – Using the same name for different functions in a program
Inheritance – in C++ inheritance is when a class acquires properties of another class