Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Absolute C++
Quiz 7: Constructors and Other Tools
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 21
Essay
Which of the following are legal access to the class or struct members? Assume each is outside of the class member definitions, struct S class C class D { { { int x;int x;public: int y;int y;int x; } private: int y; S s;int z;private: };int z; C c;}; D d; a)s.x b)c.x c)d.x d)c.z e)d.z
Question 22
Essay
Describe the differences between a call to an inline function member and a function that is not declared inline..What advantages are there to inline? What disadvantages?
Question 23
Multiple Choice
A constructor
Question 24
Essay
Describe in terms of who needs access to class members why the public members should come first in a class definition.
Question 25
Essay
Given the definitions below.Rewrite the definition of this class so that functions f()const and g(const A& x)are inline. const int x = 17; class A { public: A( ); A(int n); int f( )const; int g(const A& x); private: int i; };