Languages [3i Infotech Placement]: Sample Questions 334 - 335 of 546
Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.
Question 334
Explanation
7 principles that form the foundation for OOT or Object Oriented Technology are:
- Abstraction.
To address complexity in software development.
- Encapsulation:
Hiding design details in the object implementation - for future upgradation.
- Modularity:
Partitioning a program into logically separated and defined components with defined interactions and limited access to data.
- Hierarchy:
Single inheritance or multiple inheritance allowing functionality reuse.
- Typing:
Enforcement of the class of an object so that objects of different types are not interchanged.
- Concurrency:
Carrying out several events simultaneously.
- Persistence:
Making object exist even after program ends- so work can continue from where it was stopped.
Question 335
Describe in Detail Essay▾
What are the main differences between procedure oriented languages and object oriented language?
EditExplanation
Procedure oriented language | Object oriented language |
Divided into small parts called functions | Divided into parts called objects. |
Follows top down approach. | Follows bottom up approach. |
Does not have any access specifiers. | Access specifiers are named public, private, protected, etc. |
Adding new data and function is not easy. | Provide an easy way to add new data and function. |
Overloading is not possible. | Overloading is possible in the form of function overloading and operator overloading |
Example: C, VB, FORTRAN, Pascal. | Example: C ++ , JAVA, VB. NET, C#. NET. |