मराठी

A class is a blueprint or prototype or template to create similar objects. Each object of the class contains the characteristics and behaviour described within the class. - Computer Applications

Advertisements
Advertisements

प्रश्न

A class is a blueprint or prototype or template to create similar objects. Each object of the class contains the characteristics and behaviour described within the class. The characteristics and behaviour of a real world object resemble data and functions (methods) of a software object. You can use a data field that is common for all the objects of the class. The data members of a class can be declared such that their scope can be limited to the scope of the class or entire program. Java language also provides the keyword to distinguish the current object from the object passed to the method. 

Based on the above discussion, answer the following questions:

  1. An object is also called ______ of a class.
    1. substance
    2. instance
    3. resonance
    4. None
  2. The data members declared within a class is also termed as:
    1. instance variables
    2. local variables
    3. global variables
    4. temporary variables
  3. What type of data is accessible only within the scope of a class? 
    1. public
    2. protected
    3. private
    4. secure
  4. Name the keyword which distinguishes current object and the object passed to the method.
    1. new
    2. final
    3. static
    4. this
घटनेचा अभ्यास

उत्तर

  1. (ii) instance
  2. (i) instance variables
  3. (iii) private
  4. (iv) this
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Class as the Basis of all Computation (Objects and Classes) - Review Insight [पृष्ठ ३८१]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 6 Class as the Basis of all Computation (Objects and Classes)
Review Insight | Q 13. | पृष्ठ ३८१
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×