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 / mohan

By default the members of struct are public.
By default the members of class are priavte.

When an object is created to a class, constructor will be
called automatically.
But not in struct (if structure having member function with
structure name)

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is overriding in oop?

1039


What polymorphism means?

1078


Which is better struts or spring?

1056


How to hide the base class functionality in Inheritance?

1139


when to use 'mutable' keyword and when to use 'const cast' in c++

2163


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2464


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

2320


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1921


What is overloading in oops?

1164


How many human genes are polymorphic?

1067


Advantage and disadvantage of routing in telecom sector

1307


write a programe to calculate the simple intrest and compund intrest using by function overlading

2205


What is difference between data abstraction and encapsulation?

1085


Why is polymorphism important in oop?

1086


What is ambiguity in inheritance?

1120