Results 1 to 3 of 3

Thread: confusion about "Composition" relationship and "Inheritance" concept....?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    confusion about "Composition" relationship and "Inheritance" concept....?

    while I am learning how to implement OOPS concepts (abstraction, inheritance, overloading ...ect) in vb.net , I am reading UML books.

    Where does the concepts UML fit in OOP? Like say "Composition" relationship between classess. According to the definition of composition if there is parent-child relationship. Container class and contained class.
    say for example "Bank" is a class and "Bank Account" is another class. with out "Bank" class there can't be a "Bank Account" class and there can be many "Bank account" classess for each "Bank class". Is there a specific way we can implement the various relationships of classess in VB.NET? where does the INHERITANCE fit into all the UML concepts? Pls help me out here ..thank you

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    First, the bank class should be the only object that can be created outside of the assembly. The bank class though can create objects of bank account and such. You use Public, Private, Protected, and Friend.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2003
    Posts
    436

    so you are saying by using...the access modifiers

    we can achive the concepts of UML (composition, aggregation etc..) in vb.net by using the Access modifiers?

Posting Permissions

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



Click Here to Expand Forum to Full Width