What is the difference between class and structure?
Answer Posted / arvind
The main difference is
Structure ... Class
struct . Class
{ . {
data members ... data members
} ... +
... Member functions
... }
We can't define Functions inside structure where as in class we can define inside
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Why is there no multiple inheritance?
What is a null tree?
Why do we use oop?
State what is encapsulation and friend function?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is a class and object?
What is byval and byref? What are differences between them?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Please send ford technologies placement paper 2 my mail id
What is inheritance in simple words?
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?
Where You Can Use Interface in your Project
Explain virtual inheritance?
Can a varargs method be overloaded?
What is oops with example?