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
Why is java called technology?
What is j2ee product?
What are the main components of a class in java?
Since we can create managed bean by two ways as, we can define the bean name in faces-config.xml file so that page can use that OR we can write annotation on bean class so that it is automatically assign to page but I want to know which one is good programming practice ? And also mention disadvantage of other which should not prefer ... Thanking you...
What is javabeans component?
What is form-based authentication?
What is basic authentication?
Is string an object in java?
Is c++ more secure than java?
What is non primitive data type in java?
Who gave the name java?
What is devops in java?
What is a thin client?
What is j2ee technology?
What will happen when you compile and run the following code?