Microsoft .NET Runtime - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

Microsoft .NET Runtime

Description:

All .NET languages provide full support for object ... Blueprint of an object ... from one class, just like many buildings can be created from one blueprint ... – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 9
Provided by: farhanm
Category:

less

Transcript and Presenter's Notes

Title: Microsoft .NET Runtime


1
Object Orientation
ILM Proprietary and Confidential -
http//www.ilmservice.com
2
Object Orientation (OO)
  • .NET framework is fully object oriented
  • Everything is an object
  • All .NET languages provide full support for
    object-oriented programming
  • Understanding object-orientation is they key to
    understand .NET framework

ILM Proprietary and Confidential -
http//www.ilmservice.com
3
Object Orientation (OO)
  • OO concepts
  • Everything is an object
  • Objects interact with each other to get their
    work done
  • Objects encapsulate their information and
    behavior from other objects
  • Objects inherit from other objects to consume
    their functionality

ILM Proprietary and Confidential -
http//www.ilmservice.com
4
Object Orientation (OO)
  • Encapsulation
  • An object can hide the details behind its
    behavior from other objects
  • Fields
  • Used for holding data values specific to the
    object
  • Properties
  • Used to provide controlled access to data values
  • Methods
  • Used to define behaviors for the object
  • Events
  • Used to notify other objects about the occurrence
    of some event

ILM Proprietary and Confidential -
http//www.ilmservice.com
5
Object Orientation (OO)
  • Class
  • Blueprint of an object
  • Many objects can be created from one class, just
    like many buildings can be created from one
    blueprint
  • Access modifiers
  • Private Members are only accessible by the
    object itself
  • Public Members are accessible for all objects
  • Private Members are accessible by the object
    itself and its child objects

ILM Proprietary and Confidential -
http//www.ilmservice.com
6
Object Orientation (OO)
  • Inheritance
  • An object can inherit from another object to
    extend its functionality
  • Inheritance provides mechanism for code reuse
    between similar objects

ILM Proprietary and Confidential -
http//www.ilmservice.com
7
Object Orientation (OO)
  • Interface
  • Interface defines a contract
  • Any object can implement an interface to provide
    code for the contract
  • Many objects can provide their own code for the
    same interface

ILM Proprietary and Confidential -
http//www.ilmservice.com
8
Object Orientation (OO)
  • Polymorphism
  • Multiple objects can provide different behavior
    for same method
  • Inheritance Polymorphism
  • Child objects can overwrite a method declared in
    parent object to provide their own functionality
  • Interface Polymorphism
  • Various objects can provide different
    functionality for same method by implementing a
    common interface

ILM Proprietary and Confidential -
http//www.ilmservice.com
Write a Comment
User Comments (0)
About PowerShow.com