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 the advantage of oop over procedural language?
what are the realtime excercises in C++?
Why we use classes in oop?
What is the importance of oop?
What language is oop?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
Can enum be null?
What is the real time example of inheritance?
Can destructor be overloaded?
What is property in oops?
What do you mean by overloading?
• What are the desirable attributes for memory managment?
What is multilevel inheritance explain with example?
What is use of overloading?
Is oop better than procedural?