All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darío Mariani" <dmarian@fi.uba.ar>
To: rafael@thinkfreak.com.br
Cc: linux-c-programming@vger.kernel.org
Subject: Re: C++ class inheritance
Date: Fri, 03 Oct 2003 13:19:29 -0300	[thread overview]
Message-ID: <3F7DA191.9040706@fi.uba.ar> (raw)
In-Reply-To: 200310031257.14155.rafael@thinkfreak.com.br

   You better get a C++ book or tutorial, I can recommend you "The C++ 
Programming Language" by Bjarne Stroustrup, 3rd Edition.
   With templates you can parameterize types used in C++ constructs like 
classes, structs or functions.

Rafael Costa dos Santos wrote:
> Ok, but as I am C ANSI programmer it is a bit dificult to underestand.
> 
> Are you saying that "RasPDU" is a general class that depends on the template 
> (in this case "H225_RegistrationRequest") that is informed ?
> 
> Is it similar to create a specific class like:
> 
> class RasPDU : public H225_RegistrationRequest
> {
> } ;
> 
> and inherit from it ?
> 
> class RegistrationRequestPDU : public RasPDU
> {
> } ;
> 
> On Thursday 02 October 2003 07:30, Voicu Liviu wrote:
> 
>>Rafael Costa dos Santos wrote:
>>
>>>Can anyone explain me what does < > means ?
>>>Example:
>>>
>>>class RegistrationRequestPDU : public RasPDU<H225_RegistrationRequest>
>>>{
>>>} ;
>>>
>>>Is "RegistrationRequestPDU" inheriting from RasPDU,
>>>H225_RegistrationRequest or both ?
>>
>>RegistrationRequestPDU  inherits from RasPDU using template
>>H225_RegistrationRequest ?
> 
> 



  reply	other threads:[~2003-10-03 16:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-02  4:00 C++ class inheritance Rafael Costa dos Santos
2003-10-02  7:30 ` Voicu Liviu
2003-10-03 12:57   ` Rafael Costa dos Santos
2003-10-03 16:19     ` Darío Mariani [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-02 12:27 Sandro Dangui
2003-10-03 21:18 IVAN DE JESUS DERAS TABORA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F7DA191.9040706@fi.uba.ar \
    --to=dmarian@fi.uba.ar \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=rafael@thinkfreak.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.