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...


Which keyword is written to use a variable declared in one
class in the other class?

Answers were Sorted based on User's Feedback



Which keyword is written to use a variable declared in one class in the other class?..

Answer / sathya

public

Is This Answer Correct ?    46 Yes 1 No

Which keyword is written to use a variable declared in one class in the other class?..

Answer / poonam

We can use thses keywords Public ,Internal,Protected Internal, to use a variable in one class to other Class .

Is This Answer Correct ?    1 Yes 0 No

Which keyword is written to use a variable declared in one class in the other class?..

Answer / saravanan

public or protected

Is This Answer Correct ?    4 Yes 4 No

Which keyword is written to use a variable declared in one class in the other class?..

Answer / monica

public

Is This Answer Correct ?    0 Yes 0 No

Which keyword is written to use a variable declared in one class in the other class?..

Answer / monica

public

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

Write a program to demonstrate the use of 'Composition' in C++

2 Answers  


what is polymorphism?

4 Answers  


Can you inherit a private class?

0 Answers  


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

0 Answers  


What is difference between new and malloc?

7 Answers   emc2,


i got a backdoor offer in process global,Bangalore..Can i work with it?

0 Answers  


write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.

4 Answers  


Why do we need oop?

0 Answers  


What are the three main types of variables?

0 Answers  


#include <stdio.h> #include <alloc.h> #include <stdlib.h> #include <conio.h> void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.

0 Answers  


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

0 Answers  


How do you make derived class as an abstract class?

1 Answers   Convergys, TCS,


Categories