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
How do you achieve polymorphism?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
write a program that takes input in digits and display the result in words from 1 to 1000
What is encapsulation with real life example?
What is destructor in oop?
What is abstraction example?
What is pure oop?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
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 string class as your own class in java without using any built-in function
What is polymorphism what are the different types of polymorphism?
What is polymorphism what is it for and how is it used?
What is encapsulation with example?
Can abstract class have normal methods?
write a C++ program for booking using constructor and destructor.