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 / sidhartha
1) Data members and member functions.
2) Wrapping up of data into a single logical unit is known
as data encapsulation.
3) By using public specifier in the class.
4) private specifier is the default visibility mode.
5) (a)It is a bottom up approach.
(b)Emphasis is on data.
(c)large programs can be divided into objects.
(d)objects have their relevant own data.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is abstraction and encapsulation?
What is encapsulation c#?
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
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!!!)
Which method cannot be overridden?
How does polymorphism work?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Who invented oop?
What is polymorphism explain?
Why polymorphism is used in oops?
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).
Can abstract class have normal methods?
What is ambiguity in inheritance?
What is object in oops?
hi all..i want to know oops concepts clearly can any1 explain??