Find Jobs
Hire Freelancers

C++ Programming

$10-30 USD

Cancelado
Publicado hace más de 10 años

$10-30 USD

Pagado a la entrega
0. Given the following statements, select which function(s) get used. Both Base and Derived have virtual functions, virtual destructors, copy constructors and operator =. Also, unless otherwise specified default values are used. A. Base* pderived = new Derived; a. Base constructor b. Derived constructor c. Base copy constructor d. Base operator = B. Base base = *pderived; // from part A a. Base default constructor b. Base copy constructor c. Derived default constructor d. Derived copy constructor C. base = *pderived; // from part A & B a. Base copy constructor b. Derived copy constructor c. Base operator = d. Derived operator = D. [login to view URL](); // from part B, function is non-virtual a. Base function b. Derived function E. pderived->function(); // from part A, function is non-virtual a. Base function b. Derived function F. [login to view URL](); // from part B, function is virtual a. Base vfunction b. Derived vfunction G. pderived->vfunction(); // from part A, function is virtual a. Base vfunction b. Derived vfunction H. delete pderived; // from part A a. Base destructor b. Derived destructor 1. Using the derived passenger classes from lab4, write a polymorphic function that can take any of the three types of passengers, and access any of the virtual functions. 2. Show how to have a base class copy constructor get called from a derived class copy constructor: 3. Convert this class to be a generic: class triple { int first; double second; string third; public: triple(int f, double s, string t) : first(f), second(s), third(t): { } int getfirst() { return first; } double getsecond() { return second; } string getthird() { return third; } void setfirst(int f) { first = f; } void setsecond(double s) { second = s; } void setthird(string t) { third = t; } };
ID del proyecto: 5220812

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 10 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
2 freelancers están ofertando un promedio de $28 USD por este trabajo
Avatar del usuario
hi... i can do this. Please let me know to start immediately. i can do it on time. please initiate communication to discuss further. thanks
$25 USD en 0 día
4,9 (18 comentarios)
4,2
4,2
Avatar del usuario
A proposal has not yet been provided
$30 USD en 2 días
5,0 (1 comentario)
2,1
2,1
Avatar del usuario
Hi I have been working for 10 years in the field of c/c++ programming. I can help you.
$44 USD en 1 día
5,0 (1 comentario)
1,6
1,6
Avatar del usuario
Dear Sir, We would love to get this opportunity of working with you. We can guarantee that you will not regret your decision if you select us to execute this project.
$20 USD en 2 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
san jose, United States
5,0
43
Forma de pago verificada
Miembro desde may 31, 2012

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.