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
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.
Write a program to reverse a string using recursive function?
What is the renewal class?
Is react oop?
what's the basic's in dot net
What is overloading in oops?
Why is abstraction used?
Can we override main method?
When not to use object oriented programming?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is the real time example of encapsulation?
What is the difference between abstraction and polymorphism?
Can you explain polymorphism?
Write a program to sort the number with different sorts in one program ??
Describe these concepts: Polymorphism, Inheritance and Abstraction.