net introduction ppt

Upload: nilabharathi

Post on 03-Jun-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 .NET INTRODUCTION PPT

    1/31

    INTRODUTION TO .NET

    CLASS & OBJECTABSTRACT CLASS

  • 8/12/2019 .NET INTRODUCTION PPT

    2/31

  • 8/12/2019 .NET INTRODUCTION PPT

    3/31

    Microsoft visual studio .net is a technology

    and it contains controls, solution explorer and

    properties.Front end and back end communication is a

    package.

    It has the ability to quick building and

    intelligent system.

  • 8/12/2019 .NET INTRODUCTION PPT

    4/31

    1990next generation windows services

    2000 - .NET framework(rename)

  • 8/12/2019 .NET INTRODUCTION PPT

    5/31

    It is a collection of services and classes.

    It is a underlying layer between operating

    system and application.

    Do not support pointer.

  • 8/12/2019 .NET INTRODUCTION PPT

    6/31

  • 8/12/2019 .NET INTRODUCTION PPT

    7/31

    1.0 - .NET framework

    1.1 - .NET 2003

    2.0 - .NET 2003

    3.0.NET 2005

    3.5.NET 2008

    4.0 - .NET 2010

    4.5- .NET 2012

  • 8/12/2019 .NET INTRODUCTION PPT

    8/31

    Windows application

    Web applicationConsole application

  • 8/12/2019 .NET INTRODUCTION PPT

    9/31

    Desktop application

    Forms are like vb

    It contains controls

  • 8/12/2019 .NET INTRODUCTION PPT

    10/31

    Asp.net

    To create dynamic web page

    Server-side programming

    GUI-graphical user interface

  • 8/12/2019 .NET INTRODUCTION PPT

    11/31

    Character-user-interface.

    Command promt.

  • 8/12/2019 .NET INTRODUCTION PPT

    12/31

  • 8/12/2019 .NET INTRODUCTION PPT

    13/31

    It has the environment called managed

    code.

    Every language has runtime, instead of

    that .net has CLR.

    It is used to manage the execution of the

    code.

  • 8/12/2019 .NET INTRODUCTION PPT

    14/31

    CTS(common type system)

    CLS(common language specification)

    JIT(just in time)

  • 8/12/2019 .NET INTRODUCTION PPT

    15/31

    It is used for communicate with other

    languages.

    In vb, having int and in c++ having long, in

    one case they are not compatible with

    each other in that case cts plays role with

    Using System.int32.

  • 8/12/2019 .NET INTRODUCTION PPT

    16/31

    It defines how data types are declared,

    used and managed in runtime.

    It has a set of features have in common.

    It is a subset of CTS

  • 8/12/2019 .NET INTRODUCTION PPT

    17/31

    JIT compiler is used to convert machine

    code to native code.

    CLR supplies a JIT compiler for each

    supported cpu architecture , so developers

    can write set of MSIL can be JIT compiled

    and run on computers.

  • 8/12/2019 .NET INTRODUCTION PPT

    18/31

    Reusable of code.

    Object oriented nature at a runtime.

    With the help of namespace class library is

    executed.

  • 8/12/2019 .NET INTRODUCTION PPT

    19/31

    Logical group of related classes and

    interfaces.

    It is used to reduce the naming confusions.

    IMPORTSis the keyword for vb.net.

    Using is the keyword for c#.

  • 8/12/2019 .NET INTRODUCTION PPT

    20/31

    Dim a as integer

    Dim - statement

    A - variable

    As - clause

    Integer - datatype

  • 8/12/2019 .NET INTRODUCTION PPT

    21/31

  • 8/12/2019 .NET INTRODUCTION PPT

    22/31

    Class are user defined data type.

    Its contains collection of object.

    It like built in types of a program language.

    A group of object same behaviors.

  • 8/12/2019 .NET INTRODUCTION PPT

    23/31

    Object are basic real time entities in an

    object oriented.

    It is anything that really exist the world.It is a instant of class.

  • 8/12/2019 .NET INTRODUCTION PPT

    24/31

    ACESS SPECIFIER CLASS USERDEFINE

    CLASSNAME

    END CLASS

    ACCESS SPECIFIER CLASS CLASSNAME

    DIM OBJECTNAME AS NEW CLASSNAME()

    END CLASS

  • 8/12/2019 .NET INTRODUCTION PPT

    25/31

  • 8/12/2019 .NET INTRODUCTION PPT

    26/31

  • 8/12/2019 .NET INTRODUCTION PPT

    27/31

    Public Class Form1

    Dim d As New demo()

    Private Sub Button1_Click(ByVal sender As S

    Dim a, b As Integer

    a = d.sum(3, 4)

    b = d.subtract(4, 2)

    TextBox1.Text = a

    TextBox2.Text = b

    End Sub

  • 8/12/2019 .NET INTRODUCTION PPT

    28/31

    Public MustInherit Class sample

    Public MustOverride Function sum(ByVal a As Integer, ByVal b As

    Integer)

    Public MustOverride Function subtract(ByVal a As Integer, ByVal b As

    Integer)End Class

    Public Class demo

    Inherits sample

    Public Overrides Function sum(ByVal a As Integer, ByVal b As Integer)

    As ObjectReturn a + b

    End Function

    Public Overrides Function subtract(ByVal a As Integer, ByVal b As

    Integer) As Object

    Return a - bEnd Function

    End Class

  • 8/12/2019 .NET INTRODUCTION PPT

    29/31

  • 8/12/2019 .NET INTRODUCTION PPT

    30/31

  • 8/12/2019 .NET INTRODUCTION PPT

    31/31