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
Why do we need oop?
Which type does string inherit from?
What is the importance of oop?
What are the 4 pillars of oop?
What is polymorphism and example?
What are the 4 main oop principles?
What is the real time example of inheritance?
What is difference between multiple inheritance and multilevel inheritance?
write a program to find 2^n+1 ?
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?
How Do you Code Composition and Aggregation in C++ ?
Why is encapsulation used?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
Why is polymorphism used?
Is oop better than procedural?