Class
Upcoming SlideShare
Loading in...5
×
 

Class

on

  • 192 views

 

Statistics

Views

Total Views
192
Views on SlideShare
192
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
1

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Class Class Presentation Transcript

  • Object OrientedProgramming) OOP
  • object request) object operation)- Program object message) message request function object- Objectobject object object- Object type/class)
  • Object 2 dataObject 1 data Object 4 data Object 3 data Object Message Object
  • object data method template) Object)Object ObjectAttribute) Object Behavior)
  • Object Object identity Attribute(Variable) State Object ObjectMessage State Attribute (Value ofAttribute) Behavior Object Object
  • Encapsulation - methodspropertiesInheritance - subclass)Abstraction - objectPolymorphism - method
  • Encapsulation) private public get/setdata class Full Encapsulationclass
  • Inheritance) Class Class Class- ClassSubclasses- Class Superclass Reusable)Class Superclass Class Single Inheritance) extends
  • - Overridden method- Dynamic Binding OOP Object class main>> object x>> class object class x { public static void main(String args[]) { System.out.println("x");
  • object class class object>> object object 1object 2 class x { public static void main(String args[]) { int i = 1; System.out.println(i); ok(); } static void ok() { System.out.println("xx"); } }// Result of this program// 1// xx