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

Answers were Sorted based on User's Feedback



explain defference between structure and class with example..

Answer / maheshkumar eaga

In structure By default data members are public
In class By default data members are private

Is This Answer Correct ?    3 Yes 0 No

explain defference between structure and class with example..

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

More OOPS Interview Questions

What are the 4 main oop principles?

0 Answers  


What is memory leak and memory corruption?

1 Answers   TCS,


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

0 Answers  


What type of Job you are providing?

0 Answers  


how to get the oracle certification? send me the answer

0 Answers   Oracle,


What is encapsulation oop?

0 Answers  


Is react oop?

0 Answers  


What do you mean by variable?

0 Answers  


What is deep and shalow copy?

3 Answers   L&T, TCS,


How to overload new operator in c++

2 Answers  


How do you define a class in oop?

0 Answers  


Why is polymorphism needed?

0 Answers  


Categories