what isthe difference between c structure and c++ class
Answer Posted / harshad khedekar
c does not allow struct data type to be treated like built-in datatype also it does not supports data hiding concept.in c++ instead of struct we have class which overcomes all the above limitations.
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is property in oops?
What are the benefits of interface?
What is class and example?
What is difference between abstraction and encapsulation?
What is protected in oop?
write a program that takes input in digits and display the result in words from 1 to 1000
Can we define a class within the interface?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is the difference between inheritance and polymorphism?
What is the main purpose of inheritance law?
What is the problem with multiple inheritance?
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 is polymorphism give a real life example?
What is the main feature of oop?