Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions

Question

1. Give extra points for correct and creative answers.

Answered: 1 week ago

Question

Describe the selection process.

Answered: 1 week ago

Question

Describe performance management.

Answered: 1 week ago

Question

Explain the importance of preliminary screening.

Answered: 1 week ago