English

Fill in the blanks to design a class: class .................. { int l, b Area( int ........, int .........) l = ..............; b = ..............; } - Computer Applications

Advertisements
Advertisements

Question

Fill in the blanks to design a class: 

class ..................
{
int l, b
    Area( int ........, int .........)
    l = ..............;
    b = ..............;
}
Code Writing
Fill in the Blanks

Solution

class Area
{
int l, b
    Area( int x, int y)
    l = x;
    b = y;
}
shaalaa.com
  Is there an error in this question or solution?
Chapter 7: Constructors - EXERCISES [Page 419]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 7 Constructors
EXERCISES | Q V. 11. | Page 419
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×