![]() |
|
#1
|
||||
|
||||
|
Create 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 “Valend; 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? Cool Give the basic difference between itrator and cursors? The least one advantage and Disadvantage of Template oday paper of cs304 (object oriented programming) 1. two advantages of getter function? 2 marks 2. Which is best place to close file in try block of class? (2 marks) 3. Is it possible to make virtual function? 2 marks 4. 3 advantage of Iterator over cursors? 3 marks 5.Create a vector array of length 8. 6. Create 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 marks |
![]() |
















Linear Mode


