Results 1 to 2 of 2

Thread: Compostion

  1. #1
    ehsan is offline Member
    Join Date
    Jul 2011
    Posts
    10
    Rep Power
    0

    Default Compostion

    Hi every one . Does composition means that subclass has access to all attribute and methods in super class ???

    and how can control a subclass just access one or two attribute and method in super class ?????

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    786
    Rep Power
    5

    Default

    Once, composition has nothing to do with the access levels (modifiers) / visibility or subclassing! --> Object composition - Wikipedia, the free encyclopedia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •