Which keyword is written to use a variable declared in one
class in the other class?
Answers were Sorted based on User's Feedback
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 |
all about pointers
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!!!)
inheritence with example
What is the real life example of polymorphism?
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?
//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(); }
Why is static class not inherited?
What is object-oriented programming? Webopedia definition
what is object oriented programming and procedure oriented programming?
How to improve object oriented design skills?
why oops need in programming
write knight tour problem which is present in datastructure