Implement getbinary member function for taking the inputs


Question 1:

Give precise and short answers of the following:

1. Constructor and Destructor

2. Composition and Inheritance.

3. Static and Dynamic polymorphism.

4. Abstract and Concrete class.

Question 2:

Provide the implementation of a class named binary having two data members (a and b) of type integer with private access.

2. Implement getBinary member function for taking the inputs for a particular object's data.

3. Overload assignment operator to assign the data of one object to another.

4. Overload stream insertion operator to display the data of object on the console.

5. Overload arithmetic addition (+) operator to return the result of two objects after addition.

6. Overload unary not (!) operator, returns true if an object contains positive data, false otherwise.

7. Data member of this class should contain 1 or 0 (default value) for a particular obi rite all the set functions for each data member to set their values.

Implement default (sets all data members to 0), parameterized and copy constructor.

8. Implement getEquailndex member function which accepts an array of Binary objects and return the index of an object which is equal to the left hand side object, return -1 otherwise.

Request for Solution File

Ask an Expert for Answer!!
Econometrics: Implement getbinary member function for taking the inputs
Reference No:- TGS0964145

Expected delivery within 24 Hours