Test: Computer Science

1.

Which of the following lines represents a data member?

1. class animal
2. {
3. public:
4. animal();
5. void fetch();
6. private:
7. char bone;
8. }

Line 5

Line 3

Line 1

Line 6

Line 7

1/2 questions

0%
Learning Tools by Varsity Tutors