Object Oriented Programming Analysis

1067 Words 5 Pages
Object-oriented programming has opened the possibility that software components can be constructed and re-used with more credibility. Software developers can create software objects that model real-world objects, and then create variables and methods that constitute the object they are developing. Programming utilizing real-world like objects makes the development process easier and more relatable for the individual or team overall by making it easier to understand how objects are interconnected with one another. The end goal of the program becomes clearer to visualize as the interconnection of objects begins to form a unified system of parts that form a product. This is referred to as encapsulation. Object-oriented programming has also opened up the notion of more flexible software that is able to adapt dynamically to the needs of the application at run-time. This is because making one change in an object-oriented programming language can affect the program globally rather than having to make many changes to affect a program globally like with C. Let us compare and contrast two different object-oriented languages, C# and C++ (Craig, 2007).
C# is
…show more content…
Everything in C# is an object. C# also has its own memory management called a garbage collector, very much like Java which the language was originally modelled after. Therefore destructors are not necessary in C#, while they are necessary in C++ to avoid memory leaks. Both languages also utilize different libraries, as C# mainly utilizes the .NET Framework. This makes sense for the C# language as it was developed with the intent on using the .NET framework efficiently. As a result of this, C# is utilized more commonly for web-development over C++. C++ utilizes more libraries in common with the libraries that C utilizes, and as a result is backwards compatible with C. C# however, is not backwards compatible with C (Gaudioso,

Related Documents