Articles tagged with: Object-oriented
ATG & Java, Tech Corner »
Smalltalk, the first object-oriented language, had a major influence on the design of Java.
Key founders – James Gosling, Patrick Naughton, Chris Warth, Ed Frank, & Frank Sheridan.
Was initially called Oak. Got renamed Java in 1995.
Design Goals
Was originally meant to be a platform-neutral language for embedded-software in devices.
The goal was to move away from platform and OS-specific compilers.
The language could be used to produce platform-neutral code.
Role of WWW
The World Wide Web played a catalytic role in the evolution of Java.
The emergence of the WWW propelled the rise of Java because the …
C and C++, Tech Corner »
Data stored in program variables and arrays are temporary in nature. Such data is normally stored in the main memory(RAM) of the computer and it will be lost when the program. The best way to work with or process a large data is to store that data permanently in the computer’s memory.
To store data permanently we can use the secondary storage devices such as hard disks and magnetic tapes.
The data stored on the secondary storage devices is viewed as the data files.
File
A data file(or simply file) is a collection of …
Read the full Post »C and C++, Tech Corner »
Preprocessor – This is a macroprocessor that processes the source program before it is compiled. It is a collection of special statements called preprocesor statements or preprocessor directives.
These directives are executed before the C program passes through the compiler.
Preprocessor Directives – These are statements which begin with the # symbol placed in the first coloumn.
They are placed before the function main().
There will be no smicolon at the end of such statements.
Three types -
Macro substitution directives
File inclusion directives
Conditional compilation directives
Macro Substitution
This is a process of replacing an identifier of a C …
Read the full Post »C and C++, Tech Corner »
To know where exactly the value of a variable is stored in the memory, you need to be aware of the concept called pointers.
A pointer is a powerful construct of the C programming language.
A pointer is a variable which holds the address of other variables such as arrays, structures and functions that are used in a program.
It contains only the memory location of the variable rather than its content.
Advantages
To point to different data structures.
Manipulation of data at different memory locations is easier.
To achieve clarity and simplicity.
More compact and efficient coding.
To …
C and C++, Tech Corner »
An array is used to store and process a group of homogeneous elements. But, to store and process eleents that are not homogeneous, the knowledge of the structure is required. Structures help in packing the disimilar data items under a single name.
A structure is a meaningful collection of data items of different type. But it collects all elements under a unique name. A structure allows the programmer to create and manipulate a set of different types of data items.
The keyword struct.
Each and every structure must be defined and declared before …
Read the full Post »