HOME JOURNALS CONTACT

Information Technology Journal

Year: 2006 | Volume: 5 | Issue: 5 | Page No.: 876-883
DOI: 10.3923/itj.2006.876.883
Algorithms for Defect Detection in Object Oriented Programs
S . Sarala and S . Valli

Abstract: Defects are any condition which causes malfunctioning or which prevents the attainment of expected or previously specified results. Defects, which lead to logical error are a burden for the user or programmer. Also, the compiler is not equipped to track such defects. A piece of code can be tested to increase confidence by exposing potential flaws or deviations from user`s requirements. In this study algorithms are developed to automatically detect defects in C++ Programs. The algorithm checks the data type of the actual parameters and formal parameters for a exact match. If a match doesn`t occur, the tool reports this situation. Defect results due to omission or mismanipulation. This study checks the correctness of the program when operator [] is overloaded. In the context of inheritance when virtual function is used, it has been observed that expected results are not achieved under certain circumstances. Algorithms have been developed to handle this situation. Also the working of function templates in the context of character input and also the working of the program in the context of exception handling is tackled.

Fulltext PDF Fulltext HTML

How to cite this article
S . Sarala and S . Valli, 2006. Algorithms for Defect Detection in Object Oriented Programs. Information Technology Journal, 5: 876-883.

Related Articles:
© Science Alert. All Rights Reserved