Trey Mack James Moore Osa Osar-Emokpae

Slides:



Advertisements
Similar presentations
C# Language Report By Trevor Adams. Language History Developed by Microsoft Developed by Microsoft Principal Software Architect Principal Software Architect.
Advertisements

Portability and Safety Mahdi Milani Fard Dec, 2006 Java.
1 Introduction to Data Types (Section 7.1) CSCI 431 Programming Languages Fall 2003 A compilation of material developed by Felix Hernandez-Campos and Michael.
Inheritance and Class Hierarchies Chapter 3. Chapter 3: Inheritance and Class Hierarchies2 Chapter Objectives To understand inheritance and how it facilitates.
C# Amy Broom Hossam Ragaban Randal Rollings Fall 2003.
C#.NET C# language. C# A modern, general-purpose object-oriented language Part of the.NET family of languages ECMA standard Based on C and C++
History  We first begin with Java which was released in 1995 by Sun Microsystems  Initially Java was 100% interpreted at runtime and was very slow 
CS-341 Dick Steflik Introduction. C++ General purpose programming language A superset of C (except for minor details) provides new flexible ways for defining.
C#: Project Cool Arthur Ketchel II Keith Francisco Chris McInnis.
C++ fundamentals.
Tahir Nawaz Visual Programming C# Week 2. What is C#? C# (pronounced "C sharp") is an object- oriented language that is used to build applications for.
Introduction To C++ Programming 1.0 Basic C++ Program Structure 2.0 Program Control 3.0 Array And Structures 4.0 Function 5.0 Pointer 6.0 Secure Programming.
Peter Juszczyk CS 492/493 - ISGS. // Is this C# or Java? class TestApp { static void Main() { int counter = 0; counter++; } } The answer is C# - In C#
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
From C++ to C#. Web programming The course is on web programming using ASP.Net and C# The course is on web programming using ASP.Net and C# ASP.Net is.
Differences between C# and C++ Dr. Catherine Stringfellow Dr. Stewart Carpenter.
Principles of Computer Programming (using Java) Review Haidong Xue Summer 2011, at GSU.
+ Java vs. Javascript Jessi Style. + Java Compiled Can stand on its own Written once, run anywhere Two-stage debugging Java is an Object Oriented Programming.
Lecturer PEN PHIROM Tel : Web site: Lecturer PEN PHIROM Tel :
C++ Object Oriented 1. Class and Object The main purpose of C++ programming is to add object orientation to the C programming language and classes are.
Java and C++, The Difference An introduction Unit - 00.
C++ Programming. Table of Contents History What is C++? Development of C++ Standardized C++ What are the features of C++? What is Object Orientation?
Sadegh Aliakbary Sharif University of Technology Spring 2011.
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
BIM313 – Advanced Programming Techniques Object-Oriented Programming 1.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Programming Languages Machine.
Lecture 1 Programming in C# Introducing C# Writing a C# Program.
Distributed Systems (236351) Tutorial 1 - Getting Started with Visual Studio C#.NET.
Object Oriented Programming: Java Edition By: Samuel Robinson.
The Java Programming Language
Programming Language C++ Xulong Peng CSC415 Programming Languages.
Netprog: Java Intro1 Crash Course in Java. Netprog: Java Intro2 Why Java? Network Programming in Java is very different than in C/C++ –much more language.
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
1 C# A brief overview by Jack Senechal and Bryan Powell.
C# EMILEE KING. HISTORY OF C# In the late 1990’s Microsoft recognized the need to be able to develop applications that can run on multiple operating system.
C++ Programming Basic Learning Prepared By The Smartpath Information systems
C Sharp Web & Internet Programming Group Diana, Aren, Jeff, & Adam, Farrin 5/5/20081CS 311.
Core Java Introduction Byju Veedu Ness Technologies httpdownload.oracle.com/javase/tutorial/getStarted/intro/definition.html.
Java Basics Opening Discussion zWhat did we talk about last class? zWhat are the basic constructs in the programming languages you are familiar.
C++ The reason why it is still in use. Table of Contents Disadvantages Disadvantages Advantages Advantages Compare with object-oriented programming language.
Object Oriented Software Development 4. C# data types, objects and references.
JAVA INTRODUCTION. What is Java? 1. Java is a Pure Object – Oriented language 2. Java is developing by existing languages like C and C++. How Java Differs.
Introduction Mehdi Einali Advanced Programming in Java 1.
Inheritance and Class Hierarchies Chapter 3. Chapter 3: Inheritance and Class Hierarchies2 Chapter Objectives To understand inheritance and how it facilitates.
Inheritance and Class Hierarchies Chapter 3. Chapter Objectives  To understand inheritance and how it facilitates code reuse  To understand how Java.
Classes, Interfaces and Packages
A comparison of C-Sharp and Java Zunaid Jogee Supervisor: T. Stakemire.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
Introduction to C# Anders Hejlsberg Distinguished Engineer Developer Division Microsoft Corporation.
Introduction to C# Programming with Microsoft.NET AY
C# Fundamentals An Introduction. Before we begin How to get started writing C# – Quick tour of the dev. Environment – The current C# version is 5.0 –
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
Java and C# - Some Commonalities Compile into machine-independent, language- independent code which runs in a managed execution environment Garbage Collection.
 It is a pure oops language and a high level language.  It was developed at sun microsystems by James Gosling.
Sung-Dong Kim, Dept. of Computer Engineering, Hansung University Java - Introduction.
Fundamental of Java Programming (630002) Unit – 1 Introduction to Java.
Intro to Java L. Grewe.
Chapter No. : 1 Introduction to Java.
Inheritance and Polymorphism
Lecture 16: Introduction to Data Types
CS 326 Programming Languages, Concepts and Implementation
C# and the .NET Framework
CS360 Windows Programming
Introduction to C# AKEEL AHMED.
Lecturer: Mukhtar Mohamed Ali “Hakaale”
Advanced Programming Fall 2017.
Ada – 1983 History’s largest design effort
Java Programming Language
Pointers C#, pointers can only be declared to hold the memory addresses of value types int i = 5; int *p; p = &i; *p = 10; // changes the value of i to.
(Computer fundamental Lab)
Presentation transcript:

Trey Mack James Moore Osa Osar-Emokpae C# Presentation Trey Mack James Moore Osa Osar-Emokpae

C# Presentation, Spring 2003 Introduction C#, pronounced “C Sharp,” is one of the new languages in the .NET framework being implemented by Microsoft. All .NET languages compile to a common byte code (MSIL) making their integration into programs written in different languages easier. C# Presentation, Spring 2003

C# Presentation, Spring 2003 History C C++ Developed by Anders Hejlsberg Turbo Pascal Delphi Visual J++ Released in 2001-2002 C# Presentation, Spring 2003

C# Presentation, Spring 2003 Previous Problems Memory Leaks Illegal Pointer References Overly Complex Multiple-Inheritance Static Linking C# Presentation, Spring 2003

C# Presentation, Spring 2003 Resolutions Garbage Collection Threw out pointers Single inheritance with Interfaces Dynamic Linking Done 5 years ago in Java C# Presentation, Spring 2003

C# Presentation, Spring 2003 What is C# Contrary to popular belief, C# is not simply a clone of or replacement for Java According to Anders Hejlsberg, Microsoft’s Chief Architect, C# is a derivation of C++, C, Java, Modula 2, and Smalltalk C# Presentation, Spring 2003

C# Presentation, Spring 2003 What is C# C# combines the best features of these languages and eradicates some of their weaknesses C# Presentation, Spring 2003

C# Presentation, Spring 2003 Why Choose C#? C# was designed from scratch with the .net framework in mind C# combines the power of C and C++ with the productivity of Visual Basic With its familiar syntax the transition for Java and C++ programmers will be an easy one C# Presentation, Spring 2003

C# Presentation, Spring 2003 Why Choose C#? C# is in sync with current web standards and is easily integrated with existing applications. In today’s society where internet programming is inevitable having a language that already supports this makes the job of the developer easier. C# Presentation, Spring 2003

C# Presentation, Spring 2003 Example of Code The code looks a lot like Java public class Example { public static void Main(string[] args) foreach (string s in args) System.Console.WriteLine(s); } C# Presentation, Spring 2003

C# Presentation, Spring 2003 Features OOP C# Presentation, Spring 2003

C# Presentation, Spring 2003 OOP C# is object oriented. Every class is a subclass of an object. Everything is an object, yes even primitives. This makes generic programming easier. Example: int n = 3; string s = n.ToString(); C# Presentation, Spring 2003

C# Presentation, Spring 2003 Features OOP Enumerators C# Presentation, Spring 2003

C# Presentation, Spring 2003 Enumerators Enumerators are a borrowed idea from C/C++. This is a data type consisting of a set of of named integers. Example: enum Weekday {Mon, Tues, Wed, Thu, Fri, Sat, Sun}; C# Presentation, Spring 2003

C# Presentation, Spring 2003 Features OOP Enumerators Operator Overloading C# Presentation, Spring 2003

C# Presentation, Spring 2003 Operator Overloading Operator Overloading is yet another idea borrowed from c++. This makes polymorphism easier with custom data types. Example: Currency a, b, c; c = a + b; C# Presentation, Spring 2003

C# Presentation, Spring 2003 Features OOP Enumerators Operator Overloading Windows API Invocation C# Presentation, Spring 2003

Windows API Invocation C# was built with Windows in mind. It was created to allow programmers to create Windows application easily through a wraparound API. Some other technologies supported are COM, COM+. C# Presentation, Spring 2003

C# Presentation, Spring 2003 Features OOP Enumerators Operator Overloading Windows API Invocation Structured Error Handling C# Presentation, Spring 2003

Structured Error Handling C# introduces new error handling techniques. Try-catch blocks are used but with more functionality. To throw an object, it has to be a subclass of System.Exception. C# Presentation, Spring 2003

C# Presentation, Spring 2003 Try-Catch try-catch blocks could be any of the following; try{ } catch(SomeException){ } try{ } catch(){ } //catches any kind of exception try{ } catch(){ } finally{ } //finally is always executed try{ } finally{ } //finally is always executed C# Presentation, Spring 2003

C# Presentation, Spring 2003 Features OOP Enumerators Operator Overloading Windows API Invocation Structured Error Handling Delegates C# Presentation, Spring 2003

C# Presentation, Spring 2003 Delegates Delegates provide a template for a single method. Example: public delegate int ArithOp(int a, int b); … public int DoOp(ArithOp ar) { return ar(a, b); } C# Presentation, Spring 2003

C# Presentation, Spring 2003 Features OOP Enumerators Operator Overloading Windows API Invocation Structured Error Handling Delegates Namespaces C# Presentation, Spring 2003

C# Presentation, Spring 2003 Namespace Namespace is a method of organizing similar files together. This is similar in some way to the java package idea. Every program is either explicitly within a namespace or in by default. Example: namespace Project{ public class P1{} } public class P2{} C# Presentation, Spring 2003

C# Presentation, Spring 2003 Namespace To use a namespace, you just simply import by using the keyword using. Example: using system; public class P1{} C# Presentation, Spring 2003

C# Presentation, Spring 2003 Future of C# With C#’s flexibility and support for many languages through the .NET architecture it will definitely become a widely used language in all aspects of programming. C# Presentation, Spring 2003

C# Presentation, Spring 2003 Bibliography C# programming, Harvey, Robinson, Templeman, Watson http://www.funducode.com/csharp/basics/basics1.htm http://www.simonrobinson.com/DotNET/Articles/Languages/IntroCSh.aspx http://windows.oreilly.com/news/hejlsberg_0800.html http://msdn.microsoft.com/msdnmag/issues/0900/csharp/default.aspx C# Presentation, Spring 2003