Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Consider a class X, which includes a virtual function called X_output.

  Shared By: Reinhard Fischer    Date: Feb 16    Category: C++ Programming    Views: 820

Answer:

Consider a class X, which includes a virtual function called X_output. The virtual function receives a float value and returns nothing. Find out the function prototype for the same.

Options

a) virtual void X_output(float );
b) X:: virtual void X_output(float );
c) virtual X:: void X_output(float );
d) virtual :: void X_output(float );


Answer : a) virtual void X_output(float );

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: