There are 2 classes defined as below
public class A
{
class B b;
}
public class B
{
class A a;
}
compiler gives error. How to fix it?
Answer Posted / santhosh
class B;
public class A
{
B* b;
}
public class B
{
A a;
}
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Is react oop?
What are two types of polymorphism?
Advantage and disadvantage of routing in telecom sector
What is interface? When and where is it used?
What is encapsulation and abstraction? How are they implemented in C++?
What is the real time example of inheritance?
What is the difference between abstraction and polymorphism?
Why is abstraction needed?
Why do pointers exist?
What is a class in oop?
what are the different types of qualifier in java?
What does and I oop and sksksk mean?
What are the three parts of a simple empty class?
What is meant by oops concept?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.