by Dinesh Thakur Category: Object-oriented programming (OOP)

The creation of programs to be executed by more than one processor at the same time. Parallel programming is more difficult than ordinary SEQUENTIAL programming because of the added problem of synchronization. A sequential program has only a single FLOW OF CONTROL and runs until it stops, whereas a parallel program spawns many CONCURRENT processes and the order in which they complete affects the overall result.

 
by Dinesh Thakur Category: Object-oriented programming (OOP)

Any computer program built by combining many self-contained software structures called OBJECTS, instead of writing a single long list of instructions. Objects have both properties and behaviour, which makes them powerful tools for modelling events and processes in the real world. Each object possesses its own private data describing its properties (e.g. 'size', 'colour') and also a collection of private subprograms, called METHODS (e.g. 'print', 'display', 'move') for manipulating that data. The set of methods that an object understands is called its INTERFACE, and is the only means by which one object is allowed to interact with other.



 
by Dinesh Thakur Category: Object-oriented programming (OOP)

(OOPL) A programming language specifically designed to support the writing of OBJECT-ORIENTED programs. Such languages typically support three features not found in traditional programming languages: CLASSES, ENCAPSULATION and INHERITANCE, though the actual constructs that embody these features may have different names in different languages. The first such OOPL to be invented was SIMULA, and the most widely used OOPL today is C++, which is a derivative of the C language with added object-oriented features. Other important OOPLs include JAVA, OBJECT PASCAL, EIFFEL, and the historically important SMALLTALK.

 
by Dinesh Thakur Category: Object-oriented programming (OOP)

OOP stands for object-oriented programming, a relatively recent development in programming technology. In traditional computer programs, the procedures (the programming commands) that get things done are separated from the data they work on. By contrast, object -oriented programs are put together from building blocks called objects; each of these self-contained software modules includes all the commands and data needed to do a given set of tasks when it receives the right "messages." Because it is "encapsulated" in this way, an object can be reused as a unit in as many programs as needed. By design, OOP makes it easy to generate new objects that automatically "inherit" the capabilities of existing objects. The programmer can then modify a function or two or add some new ones, but she doesn't have to start from scratch.



 
by Dinesh Thakur Category: Object-oriented programming (OOP)

Application Programming Interface (API): A standardized interface via which an application program can access services provided by the operating system or other subsystems. An API is usually defined by source code in a high level programming language such as C or C++, and consists of a set of functions each of which invokes a particular service; programmers then call these functions from their own programs.



 
by Dinesh Thakur Category: Object-oriented programming (OOP)

An abstraction is a simplified description, or specification, of a system that focuses on some essential structure or behavior of a real-world or conceptual object. A good abstraction is one in which information that is significant to the user is emphasized while details that are immaterial, at least for the moment, are suppressed. We use the principles of information hiding to encapsulate these details.



 
by Dinesh Thakur Category: Object-oriented programming (OOP)

#define directive helps in creating constants which have no type information. This sets up an equivalence between an identifier and a text phrase. The syntax is #define v1 3.2



 
by Dinesh Thakur Category: Object-oriented programming (OOP)

Escape Sequences

Commonly used escape sequences are \n, \t and \a. The escape sequences are enclosed in single quotes. \n is a new line character and helps in transferring control to the next line. If more than one line is to be skipped, \n is repeated as many times as the number of lines to be skipped. \n can also be combined with any other message string to be displayed. \t is used for giving tab and \a is used for giving a beep.

 
by Dinesh Thakur Category: Object-oriented programming (OOP)

cin and cout are two predefined objects which represent standard input and output stream. The standard output stream represents the screen, while the standard input stream represents the keyboard. These objects are members of iostream class. Hence the header file <iostream.h> should be included in the beginning of all programs.

 
by Dinesh Thakur Category: Object-oriented programming (OOP)

C++ supports comment format which is indicated by a II sign before the comment. In this case, the comment can proceed only till the end of current line. In case it is required to extend the comment beyond the current line, the comments should be preceded by the II symbol on subsequent lines also.

 
by Dinesh Thakur Category: Object-oriented programming (OOP)

A combination of variables, constants and operators that represents a computation forms an expression. Depending upon the type of operands involved in an expression or the result obtained after evaluating expression, there are different categories of an expression. These categories of an expression are discussed here.

 
by Dinesh Thakur Category: Object-oriented programming (OOP)

A data type determines the type and the operations that can be performed on the data. C++ provides various data types and each data type is represented differently within the computer's memory. The various data types provided by C++ are built-in data types, derived data types and user-defined data types as shown in Figure.



 
by Dinesh Thakur Category: Object-oriented programming (OOP)

In C++, input and output (I/O) operators are used to take input and display output. The operator used for taking the input is known as the extraction or get from operator (>>), while the operator used for displaying the output is known as the insertion or put to operator (<<).

 
by Dinesh Thakur Category: Object-oriented programming (OOP)

Programs are a sequence of instructions or statements. These statements form the structure of a C++ program. C++ program structure is divided into various sections, namely, headers, class definition, member functions definitions and main function.

 
by Dinesh Thakur Category: Object-oriented programming (OOP)

To develop software, the object-oriented concepts need to be implemented in any high-level language. The high-level language that implements the concepts of object-oriented programming is known as an object-oriented language (also called an OO language). In general, an object-oriented language must support all or some of these OO concepts.

 

Page 1 of 4



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.



Related Articles