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

explain defference between structure and class with example

Answer Posted / padmas

The structure, data type available in C is defined as Class in C plus plus. Where the data member variables in structure are accessible by all functions, methods. In Class the data variables and methods are encapsulated in one class with explicit accessible feature as public or private to protect the data. the data can also be protected with protect feature which is not available in structure data type. the only difference is data protection.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a string using recursive function?

2403


Please send ford technologies placement paper 2 my mail id

2144


What is use of overloading?

1188


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

1082


How Do you Code Composition and Aggregation in C++ ?

25595


Where You Can Use Interface in your Project

1936


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3598


What is the problem with multiple inheritance?

1224


How to hide the base class functionality in Inheritance?

1185


What makes a language oop?

1123


What is purpose of inheritance?

1170


What is overloading in oop?

1045


What is persistence in oop?

1200


What is class in oop with example?

1158


Can we define a class within the interface?

1095