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 class and object in oops?
What is a null tree?
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 debug class?what is trace class? What differences are between them? With examples.
What is a function in oop?
Why is encapsulation used?
What is the difference between inheritance and polymorphism?
What is the significance of classes in oop?
Which type does string inherit from?
What is the highest level of cohesion?
What is polymorphism what are the different types of polymorphism?
What is polymorphism explain its types?
What are objects in oop?
What are the types of abstraction?
What is a class oop?