Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is oops?what is its use in software engineering?

1001


What does enum stand for?

1081


is there any choice in opting subjects like 4 out of 7

2143


Which is not an object oriented programming language?

950


What is difference between multiple inheritance and multilevel inheritance?

1119


Why is there no multiple inheritance?

966


What is abstraction oop?

1043


What is new keyword in oops?

1006


Why do we use inheritance?

1077


What is purpose of inheritance?

1068


Which language is not a true object oriented programming language?

1087


What are objects in oop?

1049


What is meant by oops concept?

1006


Write a c++ program to display pass and fail for three student using static member function

3345


Explain virtual inheritance?

1148