There are 2 classes . Class A and Class B. In Class A i declared
a variable in private. if we can access this private variable in
Class B. If yes means , how we can access ?
Answer Posted / deepak sarao
with the help of friend function u can access private of
class A in class B
Is This Answer Correct ? | 5 Yes | 19 No |
Post New Answer View All Answers
What should a junior java developer know?
What is j2ee explain the component of j2ee application?
What is awt panel java?
How does event listener work in java?
What is javac written?
Which edition of java is used for web application?
What is architecture neutral in java?
What is j2ee application model?
What is java 2 platform, standard edition (j2se)?
What is java mobile?
What is ejb module?
What are the differences between Ear, Jar and War files? Under what circumstances should we use each one?
What are different modules in spring?
What is javaserver pages (jsp)?
In DAO we are writting sql queries , how it is possible with creating and closing database connections.