explain defference between structure and class with example
Answers were Sorted based on User's Feedback
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 |
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 |
What is overriding vs overloading?
Get me a number puzzle game-program
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
Name an advantage of linked list over array?
Why is static class not inherited?
what is virtual function in c++
what is difference between objects and function
what is a binary overloading
What does and I oop mean?
What is a scope resolution operator?