answersLogoWhite

0


Best Answer

You can create an infinite type of classes in C++, memory permitting of course. Defining a class does not actually consume any memory, just as defining any user-defined type does not physically consume memory -- memory is only consumed when you instantiate an object of the class, just as instantiating a variable from a type consumes memory, not the type itself. However, you do need disk-space to store the files in which you declare your types, thus the number of unique types you can declare is ultimately determined by the amount of free storage space you have. Aside from that the only limit is your imagination and how you classify your objects (which is, after all, the whole point of declaring classes in the first place).

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

It's not clear what you mean by "codes". Code comes in many forms. C++ supports procedural code, structured code and object-oriented code, can incorporate C-style code and inline assembly code, and can interoperate with code developed in other languages.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

If you are asking about storage class then there are 4 storage classes

1. auto

2. extern

3. register

4. static

and if u r asking about types of class

then it is 3

1. public

2. private

3. protected

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

The type of a function is determined by its return type, so there are an infinite number of function types, whether the function returns void, a primitive or built-in type or a user-defined type. Functions can also be a class member (method) and/or a template (function template). In C++11 you can also have function objects.

This answer is:
User Avatar

User Avatar

Wiki User

6y ago

Many type functions are provided by the C++ standard library, however type functions are not actually part of the language per se. Like all functions, type functions are user-defined functions, thus there is no practical limit to the number of type functions available in C++. In addition to the standard library type functions, third-party libraries can also provide type functions and, of course, you can provide your own as required.

Note that a type function is a template function that accepts a type parameter and returns information about that type. All type functions are computed at compile-time and therefore have no runtime cost.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the different types of codes in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are the different WM words that can be used in C plus plus projects?

WM_* identifiers are Windows Message Codes defined in windows.h. They really have nothing special to do with C++ projects, as they are a function of an implementation library. There are more than several hundred different message codes.


How is c plus plus built?

C++ object oriented programming (OOP) language and supports three kinds of object types 1) Fundamental Types. 2) Derived Types. 3) Class Types.


What is the different of c and c plus plus?

c is procedure oriented and c++ is object oriented & much newer.


What is a primitive type variable in c plus plus?

same the types used in C. that is int...char...float...


Enumerate the types of selection constructs in c plus plus?

Selection constructs in C++if...elseswitch/caseconditional ternary operator (?:)

Related questions

What are the different WM words that can be used in C plus plus projects?

WM_* identifiers are Windows Message Codes defined in windows.h. They really have nothing special to do with C++ projects, as they are a function of an implementation library. There are more than several hundred different message codes.


Programming codes under classes in c plus plus?

Are called methods.


Do I need types of design patterns in c plus plus?

No.


Two hyphae from different mating types come together forming?

plus, minus strains C for plato


What is the different between turbo c plus plus and unix c plus plus?

There is no such thing as 'unix C++'.


Is the syntax between c and c plus plus different?

Yes


How is c plus plus built?

C++ object oriented programming (OOP) language and supports three kinds of object types 1) Fundamental Types. 2) Derived Types. 3) Class Types.


What is the different of c and c plus plus?

c is procedure oriented and c++ is object oriented & much newer.


What is a primitive type variable in c plus plus?

same the types used in C. that is int...char...float...


What is the different types of language?

c, c++, java


What is object oriented in c plus plus?

Object-oriented programming is a feature in C++ that allows you to better model real-world objects. An object is an instance of a class, which is a data structure in C++ that allows you to group different, but related types of data together.


Enumerate the types of selection constructs in c plus plus?

Selection constructs in C++if...elseswitch/caseconditional ternary operator (?:)