Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How many members are in the following class? class Socks I peivate: char size; string brand; string material; public: void setsize(char newsize); void setbrand(string newerand);

image text in transcribed
image text in transcribed
How many members are in the following class? class Socks I peivate: char size; string brand; string material; public: void setsize(char newsize); void setbrand(string newerand); void sethaterial (string nevaterial); char getsize(); string geterand(); string gethateriaio; ; 9 3 6 Unable to say. Question 8 I want to make sure that you can access a member of my class from outside the class. Which class access modifier should I choose? public Private protected A class declaration belongs in the implementation file. True False Question 10 A function that belongs to a class can go in either the public or private section, but generally is placed under the public access modifier. True False

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

8. Design office space to facilitate interaction between employees.

Answered: 1 week ago