What do you mean by public, private, protected and friendly?
Answer Posted / kumar vishal
this is access specifier which is used with member data and
member function inside a class.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is inheritance write a program to show use of inheritance?
What is encapsulation c#?
What is an interface in oop?
What is debug class?what is trace class? What differences are between them? With examples.
Advantage and disadvantage of routing in telecom sector
Write a c++ program to display pass and fail for three student using static member function
What is overriding in oops?
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 encapsulation oop?
What is for loop and its syntax?
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 object in oops?
• What are the desirable attributes for memory managment?
What is polymorphism what are the different types of polymorphism?