Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > difference between Typename and Class in C++

Reply
Thread Tools

difference between Typename and Class in C++

 
 
Pallav singh
Guest
Posts: n/a
 
      04-19-2009
Hi

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

Thanks
Pallav Singh
 
Reply With Quote
 
 
 
 
red floyd
Guest
Posts: n/a
 
      04-19-2009
Pallav singh wrote:
> Hi
>
> Q what is difference between Typename and Class in C++?
> Q what is difference between typedef and typename?
>


http://www.parashift.com/c++-faq-lit...t.html#faq-5.2

Google is also your friend.
 
Reply With Quote
 
 
 
 
amrollahi.saeed@gmail.com
Guest
Posts: n/a
 
      04-19-2009
On Apr 19, 3:08*pm, Pallav singh <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between class B and Class C Pallav singh C++ 5 03-26-2009 02:08 PM
what is the difference between abstract class and pure abstract class? skishorev@yahoo.co.in C++ 4 05-17-2006 08:07 AM
Q: typename or not typename? Jakob Bieling C++ 2 03-14-2006 03:44 PM
Difference between Class.new and class Levin Alexander Ruby 6 07-15-2005 01:17 PM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM



Advertisments