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

What is the difference between Class and Structure?

Answer Posted / mohanraj.d

1.structure is a value type.but class is a reference type.
2.structure is stored in stack.but class is stored in heap.
3.struct cannot have default constructor.
4.struct do not support inheritance.
5.class can inherit from a class.
6.struct cannot have declare destructor.
7.class has define object and function.
8.structure has define only object.

Is This Answer Correct ?    50 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are signs of manipulation?

1009


What is difference between c++ and c ++ 14?

982


Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

2422


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

2134


What are keywords in c++?

1042


Define friend function.

977


Why do we use string in c++?

883


Comment on c++ standard exceptions?

1035


Can we define a constructor as virtual in c++?

1063


What are the advantages of c++? Explain

999


What do you mean by delegate? Can a user retain delegates?

881


What is the best c++ ide?

1079


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6339


What are the various compound assignment operators in c++?

932


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

1014