answersLogoWhite

0

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

12y ago

What else can I help you with?

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.


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

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


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

No.


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 (?:)


Types of sort in c plus plus?

There's only one type of sort in C++; std::sort. If you want other types you'll need to write your own.