Computer Science

Overloading of New and Delete Operator

Overloading of New and Delete Operator

The memory allocation operator new and delete can be overloaded to handle memory resource in a customized way. An application designed to handle memory allocation by itself through overloading can easily detect memory leaks. //Overloading of new and delete operators #include<iostream.h> Const int ARRAY-SIZE = 10; class vector { int*array; //array is dynamically allocatable data

Overloading of New and Delete Operator Read More »

Dynamic Initialization Through Constructors

Dynamic Initialization Through Constructors

Object’s data members can be dynamically initialized during runtime, even after their creation. One advantage is that it supports different initialization formats using overloaded constructors. This provides flexibility of using different forms of data at runtime depending upon the user’s need. //Object with different name pattern #include<iostream.h> #include<string.h> class name { char first[15]; //first name

Dynamic Initialization Through Constructors Read More »

A simplified diagram to illustrate the main phases of database design

Using High Level Conceptual Data Models for Database Design

Figure shows a simplified overview of the database design process. The first step shown is requirements collection and analysis. During this step, the database designers interview prospective database users to understand and document their data requirements. The result of this step is a concisely written set of users’ requirements. These requirements should be specified in

Using High Level Conceptual Data Models for Database Design Read More »