Question: True or False: 1. When use class A: public B {......), then here A is the super class. 2. If class Person is super class

True or False: 1. When use class A: public B {......), then here A is the super class.

2. If class Person is super class of class Employee, then the statement Person* a = new Employee() is correct.

3. A copy constructor has only ONE parameter that references the same class.

4. You can access all the subclasses public members through pointers of type super class.

5. The pure virtual method is a method that MUST be implemented in the first subclass (child class).

6. The destructor declaration of class B that has one integer private attribute is int - B * (int)

7. In order to use class's non-static methods, you have to create an object of the class.

8. The initialization of static members is done by using the initializer of the class.

9. In inheritance, the destructor of child class is invoked before the destructor of the Parent class.

10. Consider the class Shape is super class of the class Circle. When we create an object of class Circle then the constructor of Shape is accessed first.

11. A Car Class can contain many constructors and many destructors.

12. Constants methods can be invoked ONLY by constant objects.

13. Constant objects can invoke both constant methods and non-constant methods.

14. The "this" key word related to the superclass.

15. Class encapsulation means he class has an inheritance relationships with other classes at the class has an inheritance relationship with other classes

16. if the pointer P points to an object of the class to access the get method we use p->get();

17. If accessme() is defined as friend function in class Modify, then this function can access the private attributes of class Student directly.

18. All static members of a class can be accessed through the class name in the main function.

19. You can call the constructor of the class explicitly by typing its name.

20. Assume you have a class of one private attribute, the class has selector and modifier methods, and obj1 and obj2 are objects of the class. To let the two objects have the same values we use obj1.get(obj2.get());

21. If class B is a super class of A, the function FI has an object of A. when F1 is finished, the destructor of B is accessed first.

22. A friend function should be already a member of another class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!