1.what are two type of classe members called?
2.what is data hiding and data encapsulation?
3.how do you make a class member visible aouside its class?
4.what is the default visibility of a class data member?
5.what are the advantages of oop over the structured
programing?

Answer Posted / n.shyam sunder rao

1.Static & Non-static
2.covering all entities like function,variables, data type
within a single entity called as class is known as data
encapsulation.
Data hiding refers to the privacy of information that are
seen within the class that is not visible to the functions
outside the class.
3.By using access specifier public.
4.default scope, that is same class,subclass with in the
same package,other classes within the same package.
5.i).Overloading functions.
ii).Code Re usability.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is inheritance write a program to show use of inheritance?

611


Is oop better than procedural?

572


how to get the oracle certification? send me the answer

1670


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1639


What is inheritance in simple words?

625






What is the problem with multiple inheritance?

586


What does and I oop mean in text?

623


What is overriding in oop?

550


What does and I oop and sksksk mean?

650


What is encapsulation and abstraction? How are they implemented in C++?

637


What is purpose of inheritance?

643


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1618


What are the 5 oop principles?

601


What is the full form of oops?

607


Explain the advantages of inheritance.

673