| New Reply |
Simple Question about C++ classes |
Share Thread | Thread Tools |
| Mar14-11, 03:32 AM | #1 |
|
|
Simple Question about C++ classes
I have seen the following in a abook:
"The argument(s) of a method can be any type of object (as long as its class has been made available to the program), as well as the predefined default types of variable. For example, methods in our three-vector class are not limited to just accepting arguments of type threevector, int, double, etc." I understand that the first statement is telling us that objects of all classes made available to the program can be used as arguments of a method. What I do not understand, however, is how the second statement follows logically from the first. "Methods in our three-vector class are not limited to just accepting arguments of type threevector, int, double, etc." Sure! No problem! But what other types of objects are you thinking of? |
| Mar14-11, 10:26 AM | #2 |
|
Mentor
|
|
| New Reply |
| Thread Tools | |
Similar Threads for: Simple Question about C++ classes
|
||||
| Thread | Forum | Replies | ||
| Question on universailty classes | Atomic, Solid State, Comp. Physics | 3 | ||
| Another terminology question. ZFC and classes. | Set Theory, Logic, Probability, Statistics | 8 | ||
| Basic general ed classes before classes for 4 yr Bachelor's degree? | Academic Guidance | 5 | ||
| question on summer classes | Academic Guidance | 8 | ||
| C++ question: nested classes | Computing & Technology | 5 | ||