CPSC 481 Fateme Rajabiyazdi #W4. Visual Studio Download Visual Studio 2013 (Ultimate) from – MSDN Academic Alliance Software Center – IT email account.

Slides:



Advertisements
Similar presentations
1 Classes and Objects in Java Parameter Passing, Delegation, Visibility Control, and Object Cleanup.
Advertisements

Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
C# Language Report By Trevor Adams. Language History Developed by Microsoft Developed by Microsoft Principal Software Architect Principal Software Architect.
1 Generic Collections Chapter Objectives You will be able to Use generic collection classes available in the.NET framework.
INHERITANCE BASICS Reusability is achieved by INHERITANCE
1 Derived Classes and Inheritance Chapter Objectives You will be able to: Create derived classes in C#. Understand polymorphism. Write polymorphic.
Distributed Systems Tutorial 1 - Getting Started with Visual C#.NET.
C# Programming: From Problem Analysis to Program Design1 2 Your First C# Program.
GTECH 731 Lab Session 4 Lab 3 Review, Lab 4 Intro 9/28/10 Lab 3 Review Lab 4 Overview.
If statements Chapter 3. Selection Want to be able to do a statement sometimes, but not others if it is raining, wear a raincoat. Start first with how.
GTECH 731 Lab Session 2 Lab 1 Review, Lab 2 Intro 9/6/10 Lab 1 Review Lab 2 Overview.
C# Tutorial From C++ to C#. Some useful links Msdn C# us/library/kx37x362.aspxhttp://msdn.microsoft.com/en- us/library/kx37x362.aspx.
Principles of Computer Programming (using Java) Review Haidong Xue Summer 2011, at GSU.
Lecture 5 What is object-oriented programming OOP techniques How Windows Forms applications rely on OOP.
Intro to C# Dr. John P. Abraham UTPA. Background required Thorough C++ programming – If you made an A in 1370/1170 you will do fine with some effort.
Visual Programming Fall 2012 – FUUAST Topic: Development environment.
C# B 1 CSC 298 Writing a C# application. C# B 2 A first C# application // Display Hello, world on the screen public class HelloWorld { public static void.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 2: Working with Visual.
INTEL ULTIMATE ENGINEERING EXPERIENCE. INSTRUCTORS BRAD NICHOLS MICHAEL KATIC RYAN SCOTT Feel.
Distributed Systems (236351) Tutorial 1 - Getting Started with Visual Studio C#.NET.
CSC 212 Object-Oriented Programming and Java Part 1.
Computer Programming 1.  Editor Console Application Notepad Notepad++ Edit plus etc.  Compiler & Interpreter Microsoft.NET Framework  Microsoft visual.
Data Types in Java James Burns. Recitation Name some characteristics of objects Name some characteristics of objects Chemical Bank Chemical Bank Describe.
FEN UCN T&B - PBA/CodeContract- Intro 1 Code Contract Introduction Specification of a Person Class.
Features of Object Oriented Programming:  A class is a collection of things which posses common similarities.  In C#.NET a class is a user defined.
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
ILM Proprietary and Confidential -
Objects, Classes and Syntax Dr. Andrew Wallace PhD BEng(hons) EurIng
CS590VC – Tutorial 6 Client-side connection through external application.
Java Classes. Consider this simplistic class public class ProjInfo {ProjInfo() {System.out.println("This program computes factorial of number"); System.out.println("passed.
More exercises with C# Fateme Rajabi #W6. Add an image to your project Right click on your project name in solution explorer Add -> Existing item -> browse.
C# Introduction Part 1. Which Visual Studio Should I use? Any Express (2012, 2013…) or Community Edition 2013 Any full version.
C# G 1 CSC 298 Object Oriented Programming Part 2.
C# Classes and Inheritance CNS 3260 C#.NET Software Development.
BEGINNING PROGRAMMING.  Literally – giving instructions to a computer so that it does what you want  Practically – using a programming language (such.
Objects and Classes Mostafa Abdallah
Exercise 2 Introduction to C# CIS Create a class called Employee that contains the following private instance variables: Social Securitystring.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 2: Working with Visual.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
Generics in C# 1. Generics List vs. non-generic ArrayList Generic List Namespace System.Collections.Generic List list = new List (); List.add(”Anders”);
INTEL ULTIMATE ENGINEERING EXPERIENCE. INTRODUCTIONS.
Object Oriented Programming. OOP  The fundamental idea behind object-oriented programming is:  The real world consists of objects. Computer programs.
Topics Instance variables, set and get methods Encapsulation
Programming in Java Transitioning from Alice. Becomes not myFirstMethod but …. public static void main (String[] arg) { // code for testing classes goes.
Classes CS 162 (Summer 2009). Parts of a Class Instance Fields Methods.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
INTEL ULTIMATE ENGINEERING EXPERIENCE. INSTRUCTORS BRAD NICHOLS MICHAEL KATIC RYAN SCOTT
Building C# Applications
Eclipse.
Basic Introduction to C#
C# — Console Application
Examples of Classes & Objects
התוכנית: using System; using System.Collections.Generic;
using System; namespace Demo01 { class Program
Internet and Java Foundations, Programming and Practice
USING ECLIPSE TO CREATE HELLO WORLD
CS360 Windows Programming
OOP’S Concepts in C#.Net
Subroutines Idea: useful code can be saved and re-used, with different data values Example: Our function to find the largest element of an array might.
Getting Started with Programming
null, true, and false are also reserved.
Introduction to Java Programming
CS-0401 INTERMEDIATE PROGRAMMING USING JAVA
Classes & Objects: Examples
عرض اجمالي المهام الشرطية في سي شارب (الأمر if)
class PrintOnetoTen { public static void main(String args[]) {
DEV354 Visual Studio 2005: New Enhancements For Debugging Applications
The important features of OOP related to C#:
Chapter 13 Exception Handling: A Deeper Look
CSG2H3 Object Oriented Programming
Presentation transcript:

CPSC 481 Fateme Rajabiyazdi #W4

Visual Studio Download Visual Studio 2013 (Ultimate) from – MSDN Academic Alliance Software Center – IT account If you don’t have one, go to CPSC help desk and ask Or help desk,

Source Control Team Foundation Server us/products/tfs-overview-vs.aspx Git

Starting a New Project

Click on File->New->Project

Click on Visual C# -> Console Application

The Workspace

Hello Word! Hint: Use Console. Inside your main function

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleTest { class Program { static void Main(string[] args) { Console.WriteLine("Hello World"); }

BreakPoint : F9

Debugging - Watch

Naming Variables CamelCasing for variables – int MyInteger PascalCasing for methods – Public void HelloWorld(){…};

Interfaces start with I A good reference: e.aspx?articleid=336

Commenting // Single line /* Multi line */ /// This is how you describe methods

Access Public: accessible anywhere Private: only accessible within the class Protected: only accessible within the same hierarchy

Properties Members that provide a mechanism to read, write or compute the values of private fields They expose a public way of getting and setting values, while hiding implementation. The Keyboard value defines the value being set Properties without a set are read-only

Class TimePeriod { private double seconds; public double Hours{ get {return seconds/3600;} public set { seconds = value *3600;} }

Others… Class in C# are private by default Booleans are “bool” Instead of ArrayList, we have List List.length -> list.Count