View Full Version : ???

01-30-2002, 10:55 AM
Hi Guys

I am finally taking the step from C into C++, so here is my question . I am wondering is their a specific programming reason or just programmer preference when declaring methods inside or outside of a class.

Thanks in advance:)

01-30-2002, 11:44 AM
i am wondering why you are asking this question in this forum...???? why not use one of the c forums?

01-30-2002, 11:49 AM
Because the C forums are usually used when people actually want code.

Anyways - for your question - Yes, there are programming reasons. Declaring a method in the class promotes encapsulation. If there's no methods in the class, it's really not much more that a struct.