CS304 Final Term Paper Spring 2011 Object Oriented ProgrammingCreate a vector array of length 8,and also initialize the elements of this array with values 0 1 2 3 4 5 6 7 (5 mrk)
<><><><><><><><><><><><><><><>><><><><><><><><><><>><>
2)
suppose base class and derive class have a member function with same signature.now call that member function throw pointer to a base class object.Now what determines that the base class member function or derived class will be called? (mrk 5)
<><><><><><><><><><><><><><><>><><><><><><><><><><>><>
3):
Find and correct the error(s) in the code below
Class counter
{
Public:
Counter(intx=10{val=x;
}
Int increment data()const{return++vali}
Static int get count()
{
Cout<<”data is “<
Return;
}
Private:
Int val;
Static in count;
};
<><><><><><><><><><><><><><><>><><><><><><><><><><>><>
4):
Describe the salint feature of abstract class (mrk3)
<><><><><><><><><><><><><><><>><><><><><><><><><><>><>
5):
Give the C++ code of template function to print the values of any type of array I int.this function will take 2 parameters one will be pointer and other will be will be size of array (mrk3)
<><><><><><><><><><><><><><><>><><><><><><><><><><>><>
6)
Give the name of three operation that a corsor or itrator generally provide (mrk3)
<><><><><><><><><><><><><><><>><><><><><><><><><><>><>
7)
What do u know about function Template?
<><><><><><><><><><><><><><><>><><><><><><><><><><>><>
Give the basic difference between itrator and cursors?
The least one advantage and Disadvantage of Template