Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. go ahead , make my day....( sorry Harry)

go ahead , make my day....( sorry Harry)

Scheduled Pinned Locked Moved The Lounge
ooptutorial
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Here is something you all been waiting for to flame me :

    statement
    subclassing is same as inheritance
    declaration
    class A is a subclass if/when it inherits from class B
    example:
    class A : class B

    statement
    class A is called parent if/when class B is used as its variable

    Con / pro expected... Variation of terminology is also expected. Sticking with the subject optional. If feasible, skip "declaration / definition" challenge. Cheers

    1 D N 3 Replies Last reply
    0
    • L Lost User

      Here is something you all been waiting for to flame me :

      statement
      subclassing is same as inheritance
      declaration
      class A is a subclass if/when it inherits from class B
      example:
      class A : class B

      statement
      class A is called parent if/when class B is used as its variable

      Con / pro expected... Variation of terminology is also expected. Sticking with the subject optional. If feasible, skip "declaration / definition" challenge. Cheers

      1 Offline
      1 Offline
      11917640 Member
      wrote on last edited by
      #2

      Salvatore Terress wrote:

      Here is something you all been waiting

      No.

      1 Reply Last reply
      0
      • L Lost User

        Here is something you all been waiting for to flame me :

        statement
        subclassing is same as inheritance
        declaration
        class A is a subclass if/when it inherits from class B
        example:
        class A : class B

        statement
        class A is called parent if/when class B is used as its variable

        Con / pro expected... Variation of terminology is also expected. Sticking with the subject optional. If feasible, skip "declaration / definition" challenge. Cheers

        D Offline
        D Offline
        Daniel Pfeffer
        wrote on last edited by
        #3

        What's wrong with the IS-A and HAS-A terminology? Examples: A cat IS-A mammal A cat HAS-A tail

        class Cat : Mammal // IS-A relationship
        {
        Tail tail_; // HAS-A relationship
        };

        Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

        O 1 Reply Last reply
        0
        • L Lost User

          Here is something you all been waiting for to flame me :

          statement
          subclassing is same as inheritance
          declaration
          class A is a subclass if/when it inherits from class B
          example:
          class A : class B

          statement
          class A is called parent if/when class B is used as its variable

          Con / pro expected... Variation of terminology is also expected. Sticking with the subject optional. If feasible, skip "declaration / definition" challenge. Cheers

          N Offline
          N Offline
          Nelek
          wrote on last edited by
          #4

          Salvatore Terress wrote:

          Here is something you all been waiting for to flame me :

          To flame you we didn't need to wait for this. :-D

          M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

          1 Reply Last reply
          0
          • D Daniel Pfeffer

            What's wrong with the IS-A and HAS-A terminology? Examples: A cat IS-A mammal A cat HAS-A tail

            class Cat : Mammal // IS-A relationship
            {
            Tail tail_; // HAS-A relationship
            };

            Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

            O Offline
            O Offline
            obermd
            wrote on last edited by
            #5

            The problem with this example is that not all cats have a tail.

            J 1 Reply Last reply
            0
            • O obermd

              The problem with this example is that not all cats have a tail.

              J Offline
              J Offline
              Julian Ragan
              wrote on last edited by
              #6

              Then allow tail to be null and handle appropriately

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups