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
What is oops?what is its use in software engineering?
What does enum stand for?
is there any choice in opting subjects like 4 out of 7
Which is not an object oriented programming language?
What is difference between multiple inheritance and multilevel inheritance?
Why is there no multiple inheritance?
What is abstraction oop?
What is new keyword in oops?
Why do we use inheritance?
What is purpose of inheritance?
Which language is not a true object oriented programming language?
What are objects in oop?
What is meant by oops concept?
Write a c++ program to display pass and fail for three student using static member function
Explain virtual inheritance?