Oops Concept 7 Marks (2M+5M)
Oops Concept 7 Marks (2M+5M)
The following are the major characteristics of any object oriented programming
language. They are
Objects
Classes
Data abstraction
Data encapsulation
Inheritance
Overloading
Polymorphism
Dynamic binding
Message passing
Data encapsulation : The wrapping of data and functions into a single unit
(class) is called data encapsulation.
Inheritance :Inheritance is the process by which one object can acquire and use
the properties of another object.
Dynamic binding: Dynamic binding is the process of linking the procedure call to
a specific sequence of code or function at run time or during the execution of the
program
The programs are modularized based on the principle of classes and objects.
Linking code & object allows related objects to share common code. This reduces
code duplication and code reusability
Data is encapsulated along with functions. thus providing data security.
Easier to develop complex software
Creation and implementation of OOP code is easy and reduces software
development time.
The concept of data abstraction separates object specification and object
implementation.
5. Mention any three High level languages that follow the OOP.
Java, Python, Ruby, C++ ,Visual Basic .NET
6. what is base class and derived class. (U)
The existing class is known as base class or super class.
The new class is known as derived class or sub class.
7. Define object and class
Objects : An object is a collection of data members and associated member functions.
Classes : A class is a collection of objects that have identical properties, common behaviour and shared
relationship
8. Define overloading. Mention its types. (U)
Overloading: Overloading allows objects to have different meaning depending upon context.
There are 2 types of overloading namely
1. Operator overloading
2. Function overloading
9. Mention any three advantages of OOP.
Easier to develop complex software
code duplication and code reusability.
easy and reduces software development time
10. Give any three applications of OOP. (A)
CAD/CAM software
Mobile computing
Decision support
11. Write the limitations of OOP.
Larger program size
Slower programs
Not suitable for all types of programs.
12. Explain any 3 characteristics of oops
Data abstraction : Data Abstraction refers to the process of representing essential features without
including background details or explanations.
Data encapsulation : The wrapping of data and functions into a single unit (class) is called data
encapsulation
Polymorphism: The ability of an operator and function to take multiple forms is known as Polymorphism