what are the characteristics of oops?

Answers were Sorted based on User's Feedback



what are the characteristics of oops?..

Answer / gauravjeet singh

1. Objects
2. Classes
3. Data Abstraction
4. Data Encapsulation
5. Inheritance
6. Polymorphism
7. Dynamic Binding
8. Operator overloading & Function overloading

Is This Answer Correct ?    111 Yes 14 No

what are the characteristics of oops?..

Answer / deep

classes,objects,inheritence,polymorphism,encapsulation,abstraction,dynamic
messaging

Is This Answer Correct ?    53 Yes 13 No

what are the characteristics of oops?..

Answer / anand

what are the characteristics of oops?
Answer
# 2

1. Objects
2. Classes
3. Data Abstraction
4. Data Encapsulation
5. Inheritance
6. Polymorphism
7. Dynamic Binding
8. Operator overloading & Function overloading

Is This Answer Correct ?    48 Yes 13 No

what are the characteristics of oops?..

Answer / charu

1)Encapsulation – Encapsulation is capturing data and keeping it safely and securely from outside interfaces.

2)Inheritance- This is the process by which a class can be derived from a base class with all features of base class and some of its own. This increases code reusability.

3)Polymorphism- This is the ability to exist in various forms. For example an operator can be overloaded so as to add two integer numbers and two floats.

4)Abstraction- The ability to represent data at a very conceptual level without any details

Is This Answer Correct ?    40 Yes 12 No

what are the characteristics of oops?..

Answer / rakesh satpute

Characteristics of Object Oriented Languages
Objects:

Objects are the basic run-time entities in an object
oriented system.They may represent a person,a place or any
item that the program has to handle.
They may also represent user defined data such as
vectors,time and lists.
An object is an instance of a class.

Declaring Objects:
Creating objects is similar to declaring variables and
can be done using the syntax:-
<Class Name> <Object Name>;

Example:
Student S1;

Class:

We just mentioned that objects contain data, and code to
manipulate that data.
The entire set of data and code of an object can be made
a user-defined data type with the help of a class.
The objects are variables of the type class.
Once a class has been defined, we can create any number
of objects belonging to that class.


Declaring Classes:
We declare classes using the following syntax:-
class < Class Name >
{
data members…
member functions…
}
Here class is a keyword.

Rules for naming classes:
* A class name must begin with a letter & can be
followed by a sequence of letters (A-Z), digits
(0-9)m,underscore (_)
* Special Characters such as ? - + * / \ ! @ # $ % ^ ( )
[ ] { } , ; : . cannot be used in the class name.
* A class name must not be the same as a reserved
keyword such as using, public, etc.

Data Abstraction and Encapsulation:

The wrapping up of data and functions into a single unit
is known as encapsulation.
Data encapsulation is the most striking feature of a class.
Abstraction refers to the act of representing essential
features without including the background details or
explanations.
Encapsulation is the hiding of information in order to
ensure that data structures and operators are used as
intended and to make the usage model more obvious to the
developer.
C++ provides the ability to define classes and functions
as its primary encapsulation mechanisms.



The figure is an example of data abstraction to
abstract doors as a data structure with essential properties.
Inheritance:

Inheritance is the process by which objects of one class
acquire the properties of objects of another class.
It supports the concept of hierarchical classification.
Creating new class is also known as the derived class
The existing class is also called the baseclass.



where Circle and Rectangle inherit from GeomFigure and
own all attributes and methods from GeoFigure.
Reusability:

The concept of inheritence provides an important feature
to the object-oriented lanuage-reusability.
A programmer can take an existing class and, without
modifyinh it, and additional features and capabilities to it.
This is done by deriving a new class from an existing class.


Polymorphism:

Polymorphism is another important OOP concept.
The word polymorphism is derived from two Latin words
poly (many) and morphos(forms).
An operation many exhibit different behaviours in
different instances..
The behaviour depends upon the types of data used in the
operation.


Dynamic Binding:

Binding refers to the linking of a procedure call to the
code to be executed in response to the call.
Dynamic binding means that the code associated with a
given procedure call is not known until the time of the call
at run-time.
It is associated with polymorphism and inheritance.

Message passing:
An object oriented program consists of a set of objects
that communicte with each other.
The process of programming in an object oriented
language,and it involves the following steps

Creating classes that define objects and their behaviour
Creating objects from class definitions ,and
Establishing communication among objects.

Is This Answer Correct ?    15 Yes 6 No

what are the characteristics of oops?..

Answer / fahad shaikh

#Characteristics of OOPs

1. Objects.
2. Classes.
3. Data Abstraction.
4. Data Encapsulation.
5. Inheritance.
6. Polymorphism.
7. Dynamic Binding.
8. Operator Overloading & Function Overloading.

Is This Answer Correct ?    9 Yes 8 No

what are the characteristics of oops?..

Answer / bhoomi

The Three OOP Principles
All object-oriented programming languages provide mechanisms that help you implement
the object-oriented model. They are encapsulation, inheritance, and polymorphism.
Let’s take a look at these concepts now.
Encapsulation
Encapsulation is the mechanism that binds together code and the data it manipulates,
and keeps both safe from outside interference and misuse. One way to think about
encapsulation is as a protective wrapper that prevents the code and data from being
arbitrarily accessed by other code defined outside the wrapper. Access to the code
and data inside the wrapper is tightly controlled through a well-defined interface.The power of encapsulated code is that everyone knows how to access it and thus
can use it regardless of the implementation details—and without fear of unexpected
side effects.

Inheritance
Inheritance is the process by which one object acquires the properties of another object.
This is important because it supports the concept of hierarchical classification. As
mentioned earlier, most knowledge is made manageable by hierarchical (that is, top-down)
classifications.However, by use of inheritance, an object need only define those qualities that make it
unique within its class. It can inherit its general attributes from its parent. Thus, it is the
inheritance mechanism that makes it possible for one object to be a specific instance of
a more general case.

Polymorphism
Polymorphism (from the Greek, meaning “many forms”) is a feature that allows one
interface to be used for a general class of actions. The specific action is determined by
the exact nature of the situation.
the concept of polymorphism is often expressed by the phrase “one
interface, multiple methods.” This means that it is possible to design a generic interface
to a group of related activities. This helps reduce complexity by allowing the same
interface to be used to specify a general class of action. It is the compiler’s job to select the
specific action (that is, method) as it applies to each situation. You, the programmer, do
not need to make this selection manually. You need only remember and utilize the
general interface.

Is This Answer Correct ?    2 Yes 4 No

Post New Answer

More OOPS Interview Questions

What is encapsulation with example?

0 Answers  


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

0 Answers  


What is multiple inheritance? Give Example

6 Answers   Mind Tree,


What are properties in oop?

0 Answers  


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

0 Answers   UBS,






why we are declare the function in the abstract class even though we are declaring it in Derived class?

1 Answers   TCS,


What are the important components of cohesion?

0 Answers  


write a program to print * * * * * *

2 Answers  


what is difference between c++ language and java language

5 Answers  


Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?

2 Answers  


what is the new version of oops

0 Answers   Ignou,


Can we have a private virtual method ?

8 Answers   Ness Technologies,


Categories