Abstract— A programming language is a formally constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs to control the behavior of a machine or to express algorithms. Most programs that are written by programmers are often compiled correctly with no syntax or semantic errors. However, some other errors appear after the execution of the program (logical error).
Logical Errors (LE) are errors that remain after all syntax errors have been removed. Usually, the compiler does not detect LE, so the produced results are different from what the programmer is expecting. For this reason, discovering and fixing the logical error is very hard and proposes a good topic for research and practice.
Some LE are resulted from the misuse of classes’ objects, and in Software Development Life Cycle (SDLC), it is considered that the software with LE is low-quality software with high maintenance cost.
In this paper, an object-oriented environment that allows the programmer to detect and discover LE to avoid it. This environment will be called Object Behavior Environment (OBEnvironment) will enforce the correct use of objects according to their predefined behaviors by using tools like Xceed Component (that appeal .Net windows form developers for building better applications), Alsing Component (that provides an area to programmer that allows writing correct syntax code by C# language) and, Mind Fusion Component (that provides an area to programmer that allows drawing State Diagrams to show object state).
Keywords-Component; Functional Safety, Reliability, Fault-Tolerance, Multiprocessor Systems, Control.
Citation: Ghassan Samara, “A Practical Approach for Detecting Logical Error in Object Oriented Environment “, The World of Computer Science and Information Technology Journal (WSCIT). 2017 Volume 7, Issue 3. pp. 10.19.
 http://objc.toodarkpark.net/oop.html. Visited on 2/2/2017
 http://www.webopedia.com/TERM/O/object_oriented_programming_OOP.html. Visited on 2/2/2017
 D. Clark, An Introduction to Object-Oriented Programming with Visual Basic .NET, Apress, 1st edition 2002.
http://www.daniweb.com/forums/thread2019.html. Visited on 2/2/2017
 http:/book/Detection of Logical Coupling Based on Product Release History.htm.
 http:/book/Modeling the Effect of Technology Trends on the Soft Error Rate of Combinational Logic.htm.
 http://www.computerhope.com.htm. Visited on 2/2/2017
 Deitel, Microsoft, Programming with C#, Prentice Hall, 2 edition 2005.
 G. Christian, Beginning C# 2008: From Novice to Professional, Apress, 2nd edition 2008.
 T. Andrew, Pro C# 2008 and the.NET 3.5 Platform, Apress, 4th edition2008.
 B. Bernd & Allen H. Dutiot , Object-Oriented Software Engineering, Prentice Hall USA , 2end 2004.