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
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?
What is a class and object?
Can destructor be overloaded?
What makes a language oop?
Give two or more real cenario of virtual function and vertual object
What is encapsulation example?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< I have One image (means a group photo ) how to split the
faces only from the image?............ please send the
answer nagadurgaraju@gmail.com thanks in advace...
what are the different types of qualifier in java? How to hide the base class functionality in Inheritance? Why it is called runtime polymorphism? Is react oop? Can a varargs method be overloaded? class type to basic type conversion What is the real time example of encapsulation?