Chapters 2 & 3. .NET Software development model that allows applications created in disparate programming languages to communicate Universal data access.

Slides:



Advertisements
Similar presentations
STRING AN EXAMPLE OF REFERENCE DATA TYPE. 2 Primitive Data Types  The eight Java primitive data types are:  byte  short  int  long  float  double.
Advertisements

CERTIFICATION OBJECTIVES Use Class Members Develop Wrapper Code & Autoboxing Code Determine the Effects of Passing Variables into Methods Recognize when.
Data Types in Java Data is the information that a program has to work with. Data is of different types. The type of a piece of data tells Java what can.
C#: Data Types Based on slides by Joe Hummel. 2 UCN Technology: Computer Science Content: “.NET is designed around the CTS, or Common Type System.
Introduction to.NET Microsoft announced in June 2000 A new software –development model that allows applications created in disparate programming languages.
3. Data Types. 2 Microsoft Objectives “.NET is designed around the CTS, or Common Type System. The CTS is what allows assemblies, written in different.
Visual C++.NET Hong Li. Introduction to.NET Microsoft announced in June 2000 Microsoft announced in June 2000 A new software –development model that allows.
Chapter 3: Introducing the Microsoft.NET Framework and Visual Basic.NET Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Platforms and tools for Web Services and Mobile Applications Introduction to C# Bent Thomsen Aalborg University 3rd and 4th of June 2004.
An Introduction to C# and the .NET Framework
Getting Started Example ICS2O curriculum
Java Software Solutions Lewis and Loftus Chapter 2 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Software Concepts -- Introduction.
Differences between C# and C++ Dr. Catherine Stringfellow Dr. Stewart Carpenter.
Rajeswari Indupuri Introduction to.NET Framework.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Introduction 01_intro.ppt
Introduction to Java Appendix A. Appendix A: Introduction to Java2 Chapter Objectives To understand the essentials of object-oriented programming in Java.
 Value, Variable and Data Type  Type Conversion  Arithmetic Expression Evaluation  Scope of variable.
CSC300 Visual Programming Dr. Craig Reinhart. Objectives Teach the basics of C++ –You won’t be an expert but hopefully a very good novice –GUI development.
High thoughts must have high language. Aristophanes
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
.NET Overview. 2 Objectives Introduce.NET –overview –languages –libraries –development and execution model Examine simple C# program.
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.
.NET Framework & C#.
Microsoft Visual Basic 2005: Reloaded Second Edition
Introduction to .NET Framework
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Java Primitives The Smallest Building Blocks of the Language (corresponds with Chapter 2)
All 300/400 Level CS Major Courses Tutoring Location: SEC 3433 Sign up or walk-in Introduction2-1.
VARIABLES AND TYPES CITS1001. Types in Java the eight primitive types the unlimited number of object types Values and References The Golden Rule Scope.
Lecture 2 Object Oriented Programming Basics of Java Language MBY.
Programming in C#. I. Introduction C# (or C-Sharp) is a programming language. C# is used to write software that runs on the.NET Framework. Although C#
Chapter 2: Using Data.
Iterative Constructs Review l What are named constants? Why are they needed? l What is a block? What is special about declaring a variable inside a block?
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
Languages and IDE (Integrated Development Environment)
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
Java Simple Types CSIS 3701: Advanced Object Oriented Programming.
4-Methods Dr. John P. Abraham Professor UTPA. Common ways of packaging code Properties Methods Classes Namespaces (related classes are grouped into a.
Java Programming, Second Edition Chapter Two Using Data Within a Program.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
Object Oriented Software Development 4. C# data types, objects and references.
1.2 Primitive Data Types and Variables
VB.NET 2008 Introduction to Variables Part 1. Overview.NET Languages –Source Code –Compiler –MSIL –CLR & Windows Variables –Data Types –Converting.
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.
July 22, 2001Introduction to.NET1 Introduction to.NET Framework Gholamali Semsarzadeh July 2001.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
LESSON 5 – Assignment Statements JAVA PROGRAMMING.
A data type in a programming language is a set of data with values having predefined characteristics.data The language usually specifies:  the range.
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
Overview CNS 3260 C#.NET Software Development. 2.NET Framework Began in 2000 Developed in three years (2000 to 2003) Operating System Hardware.NET Framework.
© 2004 Pearson Addison-Wesley. All rights reserved January 23, 2006 Creating Objects & String Class ComS 207: Programming I (in Java) Iowa State University,
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 1 An Introduction to Visual Basic.NET and Program Design.
Introduction to Visual Basic 2008 Programming
Java Primer 1: Types, Classes and Operators
Internet and Java Foundations, Programming and Practice
Multiple variables can be created in one declaration
Understand Computer Storage and Data Types
Application Foundation
Introduction to C# AKEEL AHMED.
Programming in C# CHAPTER 1
Conversions of the type of the value of an expression
Data Types and Expressions
.NET Base Type (CTS Data Type) Managed Extensions for C++ Keyword
Type Conversion It is a procedure of converting one data type values into another data type In C programming language we are having two types of type conversion.
Review of Java Fundamentals
C# and ASP.NET Programming
Presentation transcript:

Chapters 2 & 3

.NET Software development model that allows applications created in disparate programming languages to communicate Universal data access –Data can reside on a separate/central machine Web Services –Disparate systems can be linked together

Managed Extensions to C++ Called MC++ Extensions to C++ Several new data types True object-oriented environment Automatic garbage collections

Framework Class Library FCL Shared by all.Net languages –Visual C++.Net –C# –Visual Basic.Net

Common Language Runtime CLR Programs compiled to Microsoft Intermediate Language (MSIL) MSIL defines instruction set for CLR MSIL is just-in-time compiled (jit-compiled) to machine language

.Net Terms Project –Group of related files Solution –Group of projects that represent a complete solution Console Application –Character-based program Windows Forms Application –GUI and/or graphics based program

MC++ Managed Extension to standard C++ –Includes New data types True object environment Automatic garbage collection

FCL Framework Class Library –Set of classes that all.NET languages share –Security, graphics, GUI, etc.

MSIL Microsoft Intermediate Language Is to.Net what Byte Code is to Java

CLR Common Language Runtime –Compiles MSIL to machine language

IDE Integrated Development Environment –The set of programs that allows.NET applications to be constructed

New Data Types in MC++ Boolean8 Char16 (Unicode) Byte8 SByte8 (signed character) Int1616 Int3232 UInt3232 Int6464 UInt6464 Decimal96 Single32 (floating point) Double64 (floating point) Object* String*

Type Conversion Implicit Conversion –Also called “argument promotion” –Occurs when a function is called with an argument that does not match the argument of the specified type. The compiler tries to make a conversion. Explicit Conversion –Occurs when the programmer explicitly forces a conversion through the cast operator –Can also be done with the class Convert, but this requires that the type be converted to a managed type through the __box operator (about which, more later) Two kinds of conversions –Narrowing: type is converted to a type that holds a smaller range of data values (e.g., double to int) –Widening: type is converted to a type that holds a larger range of data values (e.g., int to double)

Math Class Methods Important Math class methods are on p Invoked like this: Math::Sqrt(a) –Where a is of type double

Random Class Random is a class in MC++ Contains methods for generating pseudo- random numbers No need to seed the invocation Random *randomNumber = new Random(); int x = randomNumber  Next(100) Returns a random number in the range [0..99]