मराठी

Given below is a real-life case. Class name: Monument Name two objects of this class. Also name two data and two methods of this class.

Advertisements
Advertisements

प्रश्न

Given below is a real-life case.

Class name: Monument

Name two objects of this class. Also name two data and two methods of this class.

अति संक्षिप्त उत्तर
Advertisements

उत्तर

Two objects of this class are:

  1. TajMahal
  2. QutubMinar

Two data members of this class are:

  1. monumentName
  2. location

Two methods of this class are:

  1. displayInformation()
  2. showHistory()
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 2: Class as the Basis of all Computation - Exercises [पृष्ठ ६५]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 2 Class as the Basis of all Computation
Exercises | Q 4. (v) | पृष्ठ ६५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×