1 tco 2 which statement correctly describes the default access attributes of both cl 5346865

1. (TCO 2) Which statement correctly describes the default access attributes of both classes and structures? (Points : 4) Structures are private by default and classes are private by default. Structures are public by default and classes are public by default. Structures are public by default and classes are private by default. Structures have no default access attribute and classes are private by default. 2. (TCO 3) Aggregation is also sometimes called _____. (Points : 4) inheritance instantiation composition encapsulation 3. (TCO 4) A derived class (Points : 4) can never access public members of a base class. can directly access public members of a base class. cannot change the value of public members of a base class. can only directly access private members of the base class. 4. (TCO 4) The new classes that we create from the existing classes are called the _____ classes. (Points : 4) sibling base derived parent 5. (TCO 4) Which of the following class definitions makes the public members of the class aClass become the public members of the class bClass? (Points : 4) class aClass: public bClass{ //…}; class bClass: public aClass{ //…}; class bClass: aClass{ //…}; class aClass: bClass{ //…}; 6. (TCO 4) OOP implements _____. (Points : 4) UML IPE EIP OOD 7. (TCO 4) Consider the following class definitions: class bClass { public: void setX(int); void print() const; private: int x; }; class dClass: public bClass { public: void setXY(int, int); void print() const; private: int y; }; Which of the following statements correctly redefines the member function print of bClass? (Points : 4) void dClass::print() const {dClass:print(); } void dClass::print() const { cout

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now