3.3 - Objects vs Types: Strings, char, int.
Strings used to be an array of char in C-style coding. Now they're objects in C++.
Does this mean that int and char are not objects?
crapgarden
6
Junior Poster in Training
Recommended Answers
Jump to Post>>Does this mean that int and char are not objects?
…
Yes -- they are not objects. They are data types. A string is not an object either. It is a c++ class that is defined in <string> header file. Objects are an intstance of a data type or c++ class
All 3 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
mrnutty
761
Senior Poster
crapgarden
6
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.