English

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

Question

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.

Very Short Answer
Advertisements

Solution

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
  Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 65]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 2 Class as the Basis of all Computation
Exercises | Q 4. (v) | Page 65
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×