Assignment 01
Assignment 01
Assignment 1
ID: - 15125/20
1.1 C# combines the old and the new in an almost perfect balance. C# duplicates much of the concise
syntax of C and also adds modern, object-oriented features while retaining very little unnecessary
baggage from C.
1.2 While no programming language lets programmers write entirely bug-free programs, C# goes a long
way in comparison with C and C++.
1.3 Cost of maintenance for C# is definitely much lower than that of C++. This is a positive side effect of
C# helping programmers to write program that is as bug free as possible.
1.1 C# is slower to run. This is somewhat taken care of when using WPF, although currently the
launching of WPF application is still a bit slow. However, after the program is launched, the animation
effects are all very smooth.
1.2 C# is less flexible than C++. C# depends greatly on .NET framework, anything that is not found in
the .NET framework will be difficult to implement.
2. FIND OUT THE SIMILARITY'S AND DIFFERENCES OF C# WITH YOUR 3 SELECTIVE PROGRAMING
LANGUAGES.
C# and Java are both object-oriented, general-purpose languages. Both languages descended from
lower level languages like C++.
Their syntax is so similar that if you are proficient in one, you can pick up the other without much
difficulty.
Java is a great option for building complex web-based, highly concurrent applications, whereas C# is
ideal for game development and mobile development.
Java is designed to execute on JRE (Java Runtime Environment), whereas C# is designed to execute on
CLR (Common Language Runtime).
2.2.1 C# (‘C-Sharp’) and Python are both object-oriented, high-level, and easy languages to learn and
code. They offer fast development and good performance and are both highly relevant languages in
most fields
2.2.2.C# has a more clear and organized structure. Like an OOP language, there are no inconsistencies in
the formatting rules or syntax. Because of this, C# is just a bit slower to learn and to code. C# can also do
almost anything that Python is able to do
2.2.3 C# is statically written, whereas Python is a dynamically written language. C#, being a static
language, usually contains a build/compile step.
2.3 C# VS C++
Both C++ and C# are object-oriented languages, although C++ is considered a harder language to work
with. Both of them can be used in web and desktop applications.
C++ doesn’t have the support of automatic garbage collection, whereas C# has support for the
automatic garbage collector for memory management.
In the C++ programming language, the for each loop is not supported, whereas in the C# for each loop is
supported.
C++ programming language supports multiple inheritances, whereas C# programming language doesn’t
support multiple inheritances.