Sunday 13 March 2016

Short definitions of various c++ concepts

Finding the right definition of simple explanation of different C++ terminologies / concepts can be hard sometimes. Here we will try to collect and explain most of the C++ concepts with its simple definition in alphabetical order. Have a look. And, if we missed something then do tell us in the comment section, we will try to cover as much as we can.
Short definition and explanation of c++ concepts

Abstract Class

A class that contains only interface used as base class and can never be instantiated. Other classes can extend from the base class.

Access Control

Access Control is a C++ mechanism for prohibiting or granting access to individual members of a class.

Access Specifier

Access specifier is a way of labelling member data or member functions of a class to specify what access is permitted.

Algorithm

A set of rules by which a computer solves a specific problem in a stepwise manner.

Arguments

The actual values passed to a function is called arguments.

Array

Array is a data structure that stores a contiguous sequence of elements values of a single data type in memory. Each value is accessed by its position in the array.

Assignment

The process of giving a value to a pre-existing identifier using the assignment operator.

Bit

Bit is the smallest unit of information in a binary encoding system, either 1 or 0.

Bjarne Stroustrup

Bjarne Stroustrup is the developer of the C++ Programming language.

Break

A keyword used to specify a statement that is used to break out of a loop or switch statement.

Cfront

A c++ compiler program that translates c++ to “C” soruce code. Which in turn can be compiled via a C compiler. It was developed in the mid-80s.

Class

Class is a fundamental building block of c++ programs that defines member data which may be of different data types and a set of operations that can be performed on the data member function.

Comments

Comments are put into source code by programmers in order to better explain what the code does.

Compilation Error

Error that occurs during the translation of source code into machine code.

Compiler

Compiler is a software program to change the source code to a different form called an object code.

Compound statement

A compound statement is a sequence of statements enclosed in curly braces.

Constructor

A special class member function with the same class name and is automatically called by the compiler whenever a class object comes into scope. It is an initialization function for the objects of a class.

Data Member

One of a member of a class that can hold a value.

Data Type

Data types in c++ are used for representing characters, integers, or floating point numbers.

Debug

The process of removing errors from a program.

Destructor

It is a member function that is automatically called when the class object goes out of scope or the operator delete is applied by the compiler. It must always have the same name as the class to which it belongs. A constructor is preceded by a tilde (~).

No comments:

Post a Comment