7) Write an implementation of this class using the C++ language. (i.e. implementation of the abstract class and all of its functions definition)
a. Class label: MyClass
b. Private members: int y, int array[10]
c. Public members: void sety(int a);
int gety();
void set_array(int a[], int size);
MyClass();
MyClass(int a, int a[], int size);
Ahmed_52
0
Newbie Poster
Recommended Answers
Jump to PostWhat exactly do you want? If you want the stated to be written so you can complete your homework without effort, I don't think that will happen. To begin with you can look at class declarations, learn about Object oriented programming.
class MyClass { }
will create a class with …
All 2 Replies
Reply to this topic
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.