English

CISCE ISC (Commerce) Class 12 Important Questions for Computer Science (Theory) - Objects

Topics

All topics
Advertisements
Advertisements

Chapter wise important questions with answers and solutions for Computer Science (Theory) in CISCE ISC (Commerce) Class 12.

State any one difference between instance variable and class variable.

Appears in 1 question paper
Chapter: [5] Objects
Concept: Object as an Instance of a Class

Consider the following statement written in class Circle where pi is its data member.

static final double pi = 3.142;

Which of the following statements are valid for pi?

  1. It contains a common value for all objects class Circle.
  2. Its value is non-changeable.
  3. At a time two access modifiers, static and final, cannot be applied to a single data member pi.
Appears in 1 question paper
Chapter: [5] Objects
Concept: Object as an Instance of a Class
Advertisements
Share
Notifications



      Forgot password?
Use app×