Method vs. Data (Functions) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Method vs. Data (Functions)

What is the difference between a method and data in C++? And how is a method implemented into a program? I need an understanding of it for homework purposes. I’m creating a bankAccount class project for school. Examples are welcomed. Thank You.

27th Oct 2020, 1:22 AM
Mattea Carter
Mattea Carter - avatar
1 Answer
+ 1
my understanding: methods in a class are used for manipulating class members/data and/or change the state of an object. as for example; just google or wait for some better response.
27th Oct 2020, 2:40 AM
Flash