INHERITANCE(OOP's CONCEPT)
Upcoming SlideShare
Loading in...5
×
 

INHERITANCE(OOP's CONCEPT)

on

  • 359 views

This slide shows a shortly description on INHERITANCE

This slide shows a shortly description on INHERITANCE

Statistics

Views

Total Views
359
Views on SlideShare
359
Embed Views
0

Actions

Likes
0
Downloads
11
Comments
0

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

INHERITANCE(OOP's CONCEPT) INHERITANCE(OOP's CONCEPT) Presentation Transcript

  • INHERITANCE
  • INHERITANCE means HEREDITY (TRANSFER QUALITIES/PROPERTIES FROM ONE GENERATION TO ANOTHER)
  • POP FUNCTION X PROPERTIES OF FUNCTION X PROPERTIES OF FUNCTION Y OOP CLASS X A B A B C D A B C D FUNCTION Y CLASS Y PROPERTIES OF BASE CLASS X PROPERTIES FROM BASE CLASS X PROPERTIES OF DERIVED CLASS Y
  • TYPES OF INHERITANCE SINGLE INHERITANCE MULTIPLE INHERITANCE HIERARCHICAL INHERITANCE MULTILEVEL INHERITANCE HYBRID INHERITANCE
  • SINGLE INHERITANCE X Base Class of Y Y Derived Class of X
  • MULTIPLE INHERITANCE Base Classes of Z X Y Z Derived Class of X&Y
  • HIERARCHICAL INHERITANCE Z W Base Class of W, X & Y X Y Derived Classes of Z
  • MULTILEVEL INHERITANCE X Y Z Base Class of Y Derived Class of X Base Class of Z Derived Class of Y
  • HYBRID INHERITANCE A W SINGLE INHERITANCE HIERARCHICAL INHERITANCE Base Class of Y Y X Derived Class of W, Base Class of X & Z Z Derived Classes of Y
  • B Z Base Class of X&Y Y X W Derived Class of X&Y