What is difference between abstraction and encapsulation?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OOPS Interview Questions

why reinterpret cast is considered dangerous?

0 Answers   TCS,


What are the main differences between procedure oriented languages and object oriented languages?

9 Answers   IBM, Infosys, Wipro,


The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

6 Answers   TCS,


1.explicit call for destructor 2.calling function inside a constructor. 3.base *b-new derived delete b; 4.delete p what it will delete. 5.size of base class and derived class int i,in base class and int j in derived. 6.int i-20 int main() { int i =5; printf("%d".::i); { int i =10; printf("%d".::i); } } 7.object slicing 8.new 9.function overloading(return type). 10.class base() { virtuval fun() { ----- } } class derivied:public base() { fun() { ----- } } int main() { derived d; } 11.how static function will call in C++? 12.default structures are in C++? 13.constructors should be in public . 14.virtuval constructor not exist. 15.multilevel inhritence. destructor order.

1 Answers   Tech Mahindra,


what is the difference between ERROR and EXCEPTION?

14 Answers   NIIT, nvidia,






What is multiple inheritance?

9 Answers   TCS,


Why polymorphism is used in oops?

0 Answers  


what is namespace? what are the uses of namespace?

1 Answers  


namespace is working on which compiler?

3 Answers  


all about pointers

2 Answers  


What is the difference between pass by reference and pass by value?

12 Answers   Pfizer, TCS,


What are the important components of cohesion?

0 Answers  


Categories