Page 85 - Modular_V2.0_C++_Flikpbook
P. 85

B.   Write ‘T' for true and ‘F' for false.

                      1.  All the real-world entities have properties and behaviour.                    ……………………
                      2.  Properties represent the physical appearance and qualities of an object.      ……………………

                      3.  Public members of a class can be accessed in the class in which they are declared. ……………………
                      4.  Access specifiers specify the accessibility level of the data members of a class.   ……………………

                 C.   Fill in the blanks using the words given below:


                                               Methods, Properties, Derived class, Encapsulation


                      1.  ………………………. refers to a process of binding data and function together into a single unit.

                      2.  The class which inherits the members of another class is called ………………………..
                      3.  All real-world entities have ………………………. and behaviour.

                      4.  The class consists of attributes and ………………………..

                 D.   Short answer type questions.
                      1.  What is an object-oriented language?

                      2.  What is encapsulation?
                      3.  Define inheritance.

                      4.  Explain function overloading.

                 E.   Long answer type questions.
                      1.  What is the difference between function overloading and overriding?
                      2.  What is the difference between class and object?

                      3.  What is the difference between sub class and super class?




                                                       In the lab                          21 st  Century   #Technology Literacy
                                                                                               Skills


                     Create a class named “Arithmetic" with four public functions named sum( ), sub( ), mul( ) and
                     div( ) to perform arithmetic operations.





                 Teacher's Corner

                Discuss the different principles of object-oriented programming languages.










                                                                                                                  83
                                                                                                 OOP Concepts
   80   81   82   83   84   85   86   87   88   89   90