Question from the Object Oriented Programming test

Implement the registration method on class A in a virtual way,Override the registration method on classes A1 and A2 when implementing these classes

Hard

Given a class A that implements a method to record the values of the class members in a database. Given a class A1 that inherits from A and a class A2 that also inherits from A.

You must develop as quickly as possible, and with the least code possible, a program that allows the recording of the data of an instance A, an instance A1 or an instance A2 in a database. How will you proceed? (two choices required)

Author: Eric HostaleryStatus: PublishedQuestion passed 1386 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!