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 / praveen
public class A
{
class B *b;
}
public class B
{
class A a;
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is the problem with multiple inheritance?
what is difference between class template and template class?
what is the sylabus for priliminaries?
What language is oop?
What is encapsulation in oop?
Templates mean
What is overloading in oop?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What are the components of marker interface?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is class and object with example?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is protected in oop?
What is a null tree?