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
Write a program to reverse a string using recursive function?
Please send ford technologies placement paper 2 my mail id
What is use of overloading?
What is oops?what is its use in software engineering?
How Do you Code Composition and Aggregation in C++ ?
Where You Can Use Interface in your Project
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?
What is the problem with multiple inheritance?
How to hide the base class functionality in Inheritance?
What makes a language oop?
What is purpose of inheritance?
What is overloading in oop?
What is persistence in oop?
What is class in oop with example?
Can we define a class within the interface?