What is the difference between class and structure?
Answer Posted / satish
1.class access data members and member functions but
structure access only data members
2.class supports constructor but structure does not supports.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why is abstraction needed?
What is abstraction in oop with example?
which feature are not hold visual basic of oop?
Can enum be null?
What is oops with example?
What is balance factor?
String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What language is oop?
What is static in oop?
What is abstraction in oops with example?
what are the ways in which a constructors can be called?
Why multiple inheritance is not possible?
What is encapsulation process?
What is polymorphism what is it for and how is it used?