Answer Posted / nagababu
Wrapping up data and methods in a single unit is called
Encapsulation.
Eg:-class
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
Explain the concepts involved in Object Oriented programming.
What is property in oops?
What type of loop is a for loop?
What is a class and object?
Who invented oop?
What does no cap mean?
Which language is pure oop?
is there any choice in opting subjects like 4 out of 7
Why do we use polymorphism?
What is a class in oop?
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 persistence in oop?
What are the 3 pillars of oop?
#include
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