CBSE eBooks CBSE Guess > eBooks > Class XII > Computer Science By . Mr. MRK
Chapter – 4. CLASSES AND OBJECTS 2006 Delhi: 2.c. Define a class named ADMISSION in C++ with the following descriptions: Private Members:
Public Members: Function Read_Data( ) to read an object of ADMISSION type. Function Display( ) to display the details of an object. Function Draw-Nos.( ) to choose 2 students randomly. And display the details. Use random function to generate admission nos. to match with AD_NO. Ans: class ADMISSION 2006 Outside Delhi: 1.b. Illustrate the use of Inline function in C++ with the help of an example. 2 Ans: INLINE FUNCTIONS: The inline functions are a C++ enhancement designed to speed up programs. The coding of normal functions and inline functions is similar except that inline functions definitions start with the keyword inline. |