Beruflich Dokumente
Kultur Dokumente
1. List few features of object oriented programming.Object oriented programming features: Follows bottom up approach. Emphasis is on data. Programs are divided into objects. Functions and data are bound together. Communication is done through objects. Data is hidden. 2. List features of procedure oriented programming.Procedure oriented programming features: Follows top down approach. Emphasis is on procedure. Programs are divided into functions. Data moves around freely. 3. What are the basic concepts of OOPs?The following are the basic concepts of OOPs: Classes, Objects, Data abstraction and encapsulation, Polymorphism, Inheritance, Message Passing, and Dynamic Binding. 4. What is a class? Class is an entity which consists of member data and member functions which operate on the member data bound together. 5. What is an object? Objects are instances of classes. Class is a collection of similar kind of objects. When a class is created it doesnt occupy any memory, but when instances of class is created i.e., when objects are created they occupy memory space.
6. What is data encapsulation? Wrapping up of member data and member functions together in a class is called data encapsulation. 7. What is data abstraction? Data abstraction refers to the act of providing only required features and hiding all the non-essential details for usage. 8. What are ADTs? ADTs stand for abstract data types. Classes which provide data abstraction are referred to as ADTs. 9. What is inheritance? The process of inheriting the properties of one object by another object is called inheritance. 10. What is polymorphism? The feature of exhibiting many forms is called polymorphism. 11. What are the steps involved in message passing?The following are the steps involved in message passing: Creating classes, creating objects, and creating communication between objects. 12. What is dynamic binding? The feature that the associated code of a given function is not known till run time is called dynamic binding. 13. What are the advantages of OOP?Data hiding helps create secure programs. Redundant code can be avoided by using inheritance. Multiple instances of objects can be created. Work can be divided easily based on objects. Inheritance helps to save time and cost. Easy upgrading of systems is possible using object oriented systems. 14. Give an example for object based programming language. Ada is an example for object based programming language. 15. Write the features of object based programming language. Data hiding, data encapsulation, operator overloading and automatic initialization and clear up of objects are the important features exhibited by object based programming languages.
behaviors in different instances.............. Read answer What are the advantages of OOP? It presents a simple, clear and easy to maintain structure. It enhances program modularity since each object exists independently................... Read answer Oops - Jan 12, 2009 at 21:14 PM by Vidya Sagar