FUNCTIONS, CONSTRUCTOR, DESTRUCTOR & OVERLOADING QUESTIONS IN C++. (1)

Answer the questions (i) and (ii) after going through the following class:

class Vehicle
{
int VehicleNo, Track;
public:
Vehicle(); //Function1
Vehicle(int VH); //Function2
Vehicle(Vehicle &V); //Function3
void Allocate(); //Funciton4
void Move(); //Function5
};

void main()
{
Vehicle V;
:
:
}

(i) Out of the following, which option is correct for calling Function2?
(ii) Name the feature of object oriented programming which is illustrated Function1, Function2, Function3 combined together.


No comments

Post your comments

Powered by Blogger.