Question: ASSIGNMENT 1 Your first assignment in 2018/19 is to write a section of code that demonstrates the following aspects of OOP in C++: 1. Correct

 ASSIGNMENT 1 Your first assignment in 2018/19 is to write a

ASSIGNMENT 1 Your first assignment in 2018/19 is to write a section of code that demonstrates the following aspects of OOP in C++: 1. Correct use of all access specifiers (public, private, protected) in an appropriate way 2. Over-loading using either methods or constructors 3. Abstract classes with a method that is required in all derived classes 4. Over-riding of a method 5. An example of Multiple Inheritance (it does not have to make perfect sense) 6. Separate compilation with all classes in your assignment (i.e., all classes should have cpp and .h files) 7. Example use of a friend functions that receives an object of a class and modifies the object 8. A class with a modified copy constructor and demonstrate the effect of this on pass-by- value and pass-by-reference calls 9. A working destructor with some basic functionality on one of your classes. Demonstrate it working in your main() function 10. Correct use of three over-loaded operators (e.g., +, = and =-) for one of your classes 11. Operations on pointers to arrays of objects 12. Use of all four C++ explicit style casts 13. Use of dynamic binding with virtual & non-virtual methods. Demonstrate the impact 14. Correct use of new and delete for the allocation of an object/objects, with operations on the object using pointers. (Can be combined with other points) 15. Static states of a class and an example usage. Demonstrate the impact 16. Demonstrates the difference between a C++ class and a C++ struct. 17. Passing an object to a method by constant reference. Demonstrate the impact 18. Write a straightforward example class template (does not have to relate to your example) 19. Use of the vector container to contain a number of objects of one of your classes 20. Use of the sort algorithm on your container. ASSIGNMENT 1 Your first assignment in 2018/19 is to write a section of code that demonstrates the following aspects of OOP in C++: 1. Correct use of all access specifiers (public, private, protected) in an appropriate way 2. Over-loading using either methods or constructors 3. Abstract classes with a method that is required in all derived classes 4. Over-riding of a method 5. An example of Multiple Inheritance (it does not have to make perfect sense) 6. Separate compilation with all classes in your assignment (i.e., all classes should have cpp and .h files) 7. Example use of a friend functions that receives an object of a class and modifies the object 8. A class with a modified copy constructor and demonstrate the effect of this on pass-by- value and pass-by-reference calls 9. A working destructor with some basic functionality on one of your classes. Demonstrate it working in your main() function 10. Correct use of three over-loaded operators (e.g., +, = and =-) for one of your classes 11. Operations on pointers to arrays of objects 12. Use of all four C++ explicit style casts 13. Use of dynamic binding with virtual & non-virtual methods. Demonstrate the impact 14. Correct use of new and delete for the allocation of an object/objects, with operations on the object using pointers. (Can be combined with other points) 15. Static states of a class and an example usage. Demonstrate the impact 16. Demonstrates the difference between a C++ class and a C++ struct. 17. Passing an object to a method by constant reference. Demonstrate the impact 18. Write a straightforward example class template (does not have to relate to your example) 19. Use of the vector container to contain a number of objects of one of your classes 20. Use of the sort algorithm on your container

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!