0% found this document useful (0 votes)
87 views2 pages

Assignment 01

This document compares and contrasts C# with Java, Python, and C++. It outlines both advantages and disadvantages of using C# for programming. Some key similarities between C# and other languages include object-oriented syntax and the ability to build web and desktop applications. Differences include memory management approaches, support for certain loops, and inheritance models. Overall, the document provides an overview of how C# relates to other programming languages.

Uploaded by

Sofonias Menberu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views2 pages

Assignment 01

This document compares and contrasts C# with Java, Python, and C++. It outlines both advantages and disadvantages of using C# for programming. Some key similarities between C# and other languages include object-oriented syntax and the ability to build web and desktop applications. Differences include memory management approaches, support for certain loops, and inheritance models. Overall, the document provides an overview of how C# relates to other programming languages.

Uploaded by

Sofonias Menberu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Windows programming with c#

Assignment 1

NAME: - Naod Anbess

ID: - 15125/20

SECTION: - 01 Dep. computer science REGULAR

1. FIND OUT THE ADVANTAGE AND DISADVANTAGE OF USING C# PROGRAMING LANGUAGE?

ANSWER: - advantage of using c#

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.

Disadvantage of using c#.

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.

2.1 java vs. c#

Java vs. c# advantage

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 vs. c# disadvantage


C# was that it was platform independent. Java code could be written once and ran on any platform
without the need for recompilation.

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 C# vs. python

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++

Similarities of C++ and 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.

Differences of C++ and C#

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.

You might also like