What are the OOPS concepts?
Answers were Sorted based on User's Feedback
Answer / varsha
OOPs concepts are
1)object
2)class
3)encapsulation
4)abstraction
5)polymorphism
6)inheritance
7)message passing
8)dynamic binding
BASIC CONCEPT OF OOPS:
1.OBJECTS:
An object is an abstraction of a real world entity. It may represent a person, a place, a number and icons or something else that can be modeled. Any data in an object occupy some
space in memory and can communicate with each other .
2.CLASSES:
A class is a collection of objects having common
features .It is a user defined datatypes which has data members as well functions that manipulate these data’s.
3.ABSTRACTION:
It can be defined as the separation of unnecessary details or explanation from system requirements so as to reduce the complexities of understanding requirements.
4.ENCAPTULATION:
It is a mechanism that puts the data and function together.
It is the result of hiding implementation details of an object from its user .The object hides its data to de accessed by only those functions which are packed in the class of that object.
5.INHERITANCE:
It is the relationship between two classes of object such that one of the classes ,the child takes all the relevant features of other class -the parent.
Inheritance bring about reusability.
6.POLYMORPHISM:
polymorphism means having many forms that in a single entity can takes more than one form. Polymorphism is implemented through operator overloading and function overloading.
7.DYNAMIC BINDING:
Dynamic binding is the process of resolving the function to be associated with the respective functions calls during their runtime rather than compile time.
8.MESSAGE PASSING:
Every data in an object in oops that is capable of processing request known as message .All object can communicate with each other by sending message to each other
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / manoj kumar verma
OOps or Object Oriented Programming is the technique to
create program based on the real world.
OOPs based language to findout the object and manipulate
and their relation between each other. OOPa offer greather
flexibility and comptibility and is populor in developing
large application.
OOPs define the various properties such as..
1. Class -:
In class Define the all the Data members and
methods.
2. Objects -:
object is the Instance of class.
3. Methods -:
We know that a class can define both
attributes and behaviour.Attrbutes are define by varibles
and behavior are define by methods.
4. Abstraction -:
only show the essential details and do
not show the non - essential details.
5. Encapsulation -:
Means, hiding of the data members or
packing the data members and methods.
6. Inheritance -:
Reuseability of the code by making a
derived class. for e.g. father -> chield
A class is made looking at which the new derived class is
made with modification or addition in the derived class
7. Polymorphism -:
When one objects show the various
forms then it is known as polymorphism. for e.g.
One mobile key type the some character and one digits.
8. Message Passing -:
we can pass the one object to
another.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nikky
OOPS concepts are:
CLASS
OBJECT
ABSTRACTION
ENCAPSULATION
INHERITANCE
POLYMORTHISM
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vaibhav
In simple way,
The complex programming organizing in to simple structure by
using the concepts methodologies of,
Encapsulation
Abstraction
Polymorphism
Inheritance.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / krishna
1)Object-Instance of the class
2)Classes-Combination of Data members and member functions
3)Data Abstraction-Abstracting the data and functions from
unwanted users.
4)Data Encapsulation-Wrapping up of Data members and member
functions.
5)Inheritance-Passing the values from one object to anther
object.
6)Message Passing-Messages can possible from one object to
anther object
7)Polymorphism-its like function over loading.
Poly-Many, morphism-Forms
8)Robust and Securisam-its for security purpose
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / abhradeep
Object is form of data abstraction so the OOP concepts will be as follows
1) Encapsulation (E.G Class)
2) Abstraction (E.G Object)
3) Polymorphism (e.g Overloading, overriding)
4) Inheritance (e.g Interface, Abstract Class)
5) Dynamic binding (e.g new keyword @ the runtime)
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / razz rohit
1)Object-Instance of the class
2)Classes-Combination of Data members and member functions
3)Data Abstraction-Abstracting the data and functions from
unwanted users.
4)Data Encapsulation-Wrapping up of Data members and member
functions.
5)Inheritance-Passing the values from one object to anther
object.
6)Message Passing-Messages can possible from one object to
anther object
7)Polymorphism-its like function over loading.
Poly-Many, morphism-Forms
8)Robust and Securisam-its for security purpose
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / faizan
1)object
2)class
3)encapsulation & abstraction
4)polymorphism
5)inheritance
6)message passing
7)dynamic binding
These all are partially supported by c++,java supports
all the above features
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / aakritybuxy
Its a concept,used to describe a computer application that
is composed of multiple objects,which are connected to each
other. Three of the most basic concept for OOPS are:
* Classes
* Objects
* Methods...
There are few more concepts :
* Inheritance
* Abstraction
* Polymorphism
* Encapsulation.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / gaskdfgka
Object-oriented programming (OOP) is a computer science
term used to characterize a programming language that began
development in the 1960’s. The term ‘object-oriented
programming’ was originally coined by Xerox PARC to
designate a computer application that describes the
methodology of using objects as the foundation for
computation. By the 1980’s, OOP rose to prominence as the
programming language of choice, exemplified by the success
of C++. Currently, OOPs such as Java, J2EE, C++, C#, Visual
Basic.NET, Python and JavaScript are popular OOP
programming languages that any career-oriented Software
Engineer or developer should be familiar with.
Software Engineer S.Gowtham
e-mail:gowtham7pulse@yahoo.in
any doubts pl's send your questains
ok
Is This Answer Correct ? | 1 Yes | 1 No |
Why static functions always uses static variables?
when my application exe is running nad i don't want to create another exe what should i do
which feature are not hold visual basic of oop?
what is namespace? what are the uses of namespace?
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.
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
difine hierarchical inheritance.
In which cases you use override and new base?
all about pointers
Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?
How to Increment the value of the empid E001 for each and every employee by using the programe?
Explain polymorphism? What r the types of polymorphism? pls give examples?