July 16, 2021 in C and CPP
This type of operator cannot be overloaded
1.4 This type of operator cannot be overloaded
A) Unary operator
B) Binary operator
C) Ternary operator
D) All of the above
July 16, 2021 in C and CPP
1.4 This type of operator cannot be overloaded
A) Unary operator
B) Binary operator
C) Ternary operator
D) All of the above
July 16, 2021 in C and CPP
1.3 This parameter is not useful to invoke correct function in function overloading
A) The number of arguments
B) The types of arguments
C) Return type of the functions
D) None of the above
July 16, 2021 in C and CPP
1.2 This operator is used with cout
A) Scope resolution operator
B) Insertion operator
C) Extraction operator
D) Bit-wise right shift operator
July 16, 2021 in C and CPP
1.1 The variables and functions of a class as private are not accessible to any outside function.
This feature of a class is called
A) Data hiding
B) Polymorphism
C) Abstraction
D) None of above
July 16, 2021 in C and CPP
c) Write short note on stream classes for console I/O operation in C++.
July 16, 2021 in C and CPP
b) What are the advantages of templates in generic programming?
July 16, 2021 in C and CPP
a) Explain inline function concept in detail.
July 16, 2021 in C and CPP
c) Differentiate between early binding and late binding.
July 16, 2021 in C and CPP
b) Explain the concept of virtual base class for inheritance.
July 16, 2021 in C and CPP
a) Create a class Clock having private data members hour and minute in integer. A default
constructor should initialize the data to 0. Overload it with parameterized constructor. A
member function should enter the data and another should display time in 10:37 format. A
final member function should receive two objects, add them and store the result to the
invoking object. Write an appropriate main ( ) function.