difference between Typename and Class in C++

Discussion in 'C++' started by Pallav singh, Apr 19, 2009.

  1. Pallav singh

    Pallav singh Guest

    Hi

    Q what is difference between Typename and Class in C++?
    Q what is difference between typedef and typename?

    Thanks
    Pallav Singh
    Pallav singh, Apr 19, 2009
    #1
    1. Advertising

  2. Pallav singh

    red floyd Guest

    red floyd, Apr 19, 2009
    #2
    1. Advertising

  3. Pallav singh

    Guest

    Re: difference between Typename and Class in C++

    On Apr 19, 3:08 pm, Pallav singh <> wrote:
    > Hi
    >
    > Q what   is   difference   between   Typename and   Class  in   C++?
    > Q what   is   difference   between   typedef   and   typename?
    >
    > Thanks
    > Pallav Singh


    Hi Pallav
    I assume it isn't a homework.
    typename is a keyword which mainly used in programming templates.
    class is the
    most important fundamental concept in C++. It is used for design and
    implementation of user-defined type.
    typedef is used for somehow introducing a new name for a type (built-
    in and user-defined).
    They are vey different in nature and usage.
    "typedef" is C/C++ keyword but "class" and "typename" belongs to C++.
    I really don't want to be precise.
    Use C++ FAQ and The C++ Programming Language by Bjarne Stroustrup for
    details
    and of course start C++ programming.

    Good luck,
    -- Saeed Amrollahi
    , Apr 19, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jakk
    Replies:
    4
    Views:
    12,038
  2. Jakob Bieling

    Q: typename or not typename?

    Jakob Bieling, Mar 14, 2006, in forum: C++
    Replies:
    2
    Views:
    341
    Rolf Magnus
    Mar 14, 2006
  3. Replies:
    4
    Views:
    800
    Rolf Magnus
    May 17, 2006
  4. Pallav singh
    Replies:
    5
    Views:
    414
    red floyd
    Mar 26, 2009
  5. Levin Alexander

    Difference between Class.new and class

    Levin Alexander, Jul 14, 2005, in forum: Ruby
    Replies:
    6
    Views:
    143
    Florian Groß
    Jul 15, 2005
Loading...

Share This Page