Which keyword is written to use a variable declared in one
class in the other class?

Answers were Sorted based on User's Feedback



Which keyword is written to use a variable declared in one class in the other class?..

Answer / sathya

public

Is This Answer Correct ?    46 Yes 1 No

Which keyword is written to use a variable declared in one class in the other class?..

Answer / poonam

We can use thses keywords Public ,Internal,Protected Internal, to use a variable in one class to other Class .

Is This Answer Correct ?    1 Yes 0 No

Which keyword is written to use a variable declared in one class in the other class?..

Answer / saravanan

public or protected

Is This Answer Correct ?    4 Yes 4 No

Which keyword is written to use a variable declared in one class in the other class?..

Answer / monica

public

Is This Answer Correct ?    0 Yes 0 No

Which keyword is written to use a variable declared in one class in the other class?..

Answer / monica

public

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

all about pointers

2 Answers  


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

0 Answers   HCL,


inheritence with example

1 Answers  


What is the real life example of polymorphism?

0 Answers  


monkey starts climbing up a tree 20ft tall,each hour ,it hops 3ft and slips back by 2ft .how much time it wil tak to reach top of the tree?

13 Answers   IonIdea,






//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }

1 Answers  


Why is static class not inherited?

0 Answers  


What is object-oriented programming? Webopedia definition

0 Answers  


what is object oriented programming and procedure oriented programming?

3 Answers  


How to improve object oriented design skills?

0 Answers  


why oops need in programming

7 Answers   TCS,


write knight tour problem which is present in datastructure

0 Answers  


Categories