slide1
Download
Skip this Video
Download Presentation
Object-Oriented Programming

Loading in 2 Seconds...

play fullscreen
1 / 17

Object-Oriented Programming - PowerPoint PPT Presentation


  • 102 Views
  • Uploaded on

Object-Oriented Programming. Agenda. Classes Attributes Properties Methods (Functions) Constructor Passing Parameters By Reference & Value Access Modifiers Interfaces Polymorphism Overriding. Classes. <access modifier> class class\_name. Class Definition. Note: .

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Object-Oriented Programming' - skule


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
agenda
Agenda
  • Classes
    • Attributes
    • Properties
    • Methods (Functions)
    • Constructor
    • Passing Parameters By Reference & Value
  • Access Modifiers
  • Interfaces
  • Polymorphism
  • Overriding
access modifier class class name
class class_name

Class Definition

Note:

  • Access modifier specify the access rules for the members as well as the class itself, if not mentioned then the default access for the members is private.
  • To access the class members, you will use the dot (.) operator.
  • The dot operator links the name of an object with the name of a member.
class features
Class Features:
  • Attributes variable1; variable2;
  • Properties prop_name { get{ } set{ } }
  • Methods method name(Parameter) { Method Body }
  • Constructor class name(Parameter)
list of access modifiers
List of Access Modifiers:
  • Public
  • Private
  • Protected
  • Internal
  • Protected internal
slide11
An interface is defined as a syntactical contract that all the classes inheriting the interface should follow.
  • The interface defines the 'what' part of the syntactical contract and the deriving classes define the 'how' part of the syntactical contract.
slide13
Static Polymorphism:
    • Function overloading
    • Operator overloading
  • Dynamic Polymorphism
summary
Summary:
  • Classes
  • Classes Features
  • Access Modifiers
  • Interfaces
  • Polymorphism
contact me
Contact Me

[email protected]

@lilemam

01023513868

/lil.emam

ad