What are the OOPS concepts?
Answers were Sorted based on User's Feedback
Answer / visnu prassath t.s
1.class
2.object
3.inheritance
4.encapsulation
5.polymorphism
6.abstraction
7.interface
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / abhishek singh rathaur
BASIC CONCEPT OF OOPS:
1.OBJECTS:
An object is an abstraction of a real world entity. It may
represent a person,a placea number and icons or something
else that can be modelled.Any data in an object occupy some
space in memory and can communicate with eachother .
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 manupulate these datas.
3.ABSTRACTION:
It can be definr\ed as the seperation of unnecessary
details or explation from system requirments so as to
reduce the complaxities of understanding requirments.
4.ENCAPTULATION:
It is a mechanism that puts the data and function together.
It is bthe result of hiding implimintation 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 relevent
features of other class -the parent.
Inheritance bring about reusablity.
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 proces of resolving the function to
be associated with yhe respective functions calls during
their runtime rather than compile time.
8.MESSAGE PASSING:
Every data in an objest 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 ? | 2 Yes | 0 No |
Answer / teja
we have several types of oop's concepts .
they are:
1.class
2.object
3.polimorphism
4.abstraction
5.dynamic binding
6.message passing
7.inheritance
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / abitha
basic concepts of oops are
object
class
encapsulatons
polymorphism
inheritance
abstraction
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / rakadon
oop concepts are:
1.classes
2.objects
3.data abstraction
4.encapsulation
5.inheritence
6.polymorphism
7.dynmaic binding
8.message passing
these are prime oops concepts.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / dinesh puri
1.Object:
An Object is a computer representation of some real-world
thing (i.e person, place) or event. Objects can have both
attributes and behaviours
2.class:
Objects with the same data structure (Attributes) and
behavior (Methods or Operations) are grouped together
(called a class ).
3.Encapsulation:
Encapsulation (or information hiding) is a principle, about
hiding the details of the implementation of the interface.
It is to reveal as little as possible about the inner
workings of the Interface.
4.inheritance:
As objects do not exist by themselves but are instances of
a CLASS, a class can inherit the features of another class
and add its own modifications. (This could mean
restrictions or additions to its functionality).
Inheritance aids in the reuse of code.
Classes can have 'Children' that is, one class can be
created out of another class. The original or parent class
is known as the SuperClass (or base class). The child class
is known as the SubClass (or derived class).
5.poymorphism:
Polymorphism means the ability to request that the same
Operations be performed by a wide range of different types
of things.
Effectively, this means that you can ask many different
objects to perform the same action
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ranjit kumar singh
The oops concepts have:
1.Class
2.Object
3.Messege
4.Resilance to change
5.Encapsulation
6.Overloading
7.Inheritance
8.Interfaces
9.Polymorphism
10.Data abstraction.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ram
There are so many things in oops which are related to it.
The first we understand that the full form of oops is
OBJECT ORIENTED PROGRAMING STRUCTURE.Many people knows that
the full form of oop but they don't know about the s means
structure which may be asked in interview.
Now we discuss about the concepts
THEY ARE
1.OBJECTS:
An object is an abstraction of a real world entity. It may
represent a person,a placea number and icons or something
else that can be modelled.Any data in an object occupy some
space in memory and can communicate with eachother .
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 manupulate these datas.
3. Encapsulation: It is the mechanism that binds together
code and data in manipulates, and keeps both safe from
outside interference and misuse. In short it isolates a
particular code and data from all other codes and data. A
well-defined interface controls the access to that
particular code and data.
4. Inheritance: It is the process by which one object
acquires the properties of another object. This supports
the hierarchical classification. Without the use of
hierarchies, each object would need to define all its
characteristics explicitly. 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. A new sub-class inherits all of
the attributes of all of its ancestors.
5. Polymorphism: It is a feature that allows one interface
to be used for general class of actions. The specific
action is determined by the exact nature of the situation.
In general polymorphism means "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
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rajkumar
oop has two major components class and object
The oop contain following concepts
1.Abstraction
2.Encapsulation
3.Inheritance
4.polymorphism
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / s.senthil kumar
class
object
data hidung
data encapsulation
inheritance
operator overloading
message passing
| Is This Answer Correct ? | 1 Yes | 0 No |
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile
In c++ there is only virtual destructors, no constructors. Why?
Whats oop mean?
How is polymorphism achieved?
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.
what is the abstract class,interface ,its difference with a programatic eg.? hi,recently i went for an interview they ask me what is abstract class ,interface and its difference I said abstract class contain abstact method ,abstract method is a method with no body.Abstract class cannot be instantiated.Abstract class is a base class it required derived class for the implementation of method. Interface is a syntactical contract that all derived class should follow it define properties ,method,events which are known as member of interface. Then They asked me what is the difference between them. I said abstract class interface 1.abstact class can implement method 1.interface cant 2.abstact class can contain constructor, 2.interface cant destructor 3.abstract class cannot support multiple 3.interface support inheritance etc Then they said some different answer I said dont no. Then they ask me when i should make abstract class for an project and when i should make interface. I said if suppose there is two class which must be having method with different logic then we sholud make abstract class. and if suppose we have two class having method .with different logic then we can make interface . Am i correct with my explaination.if not correct me .please provide me that when should we create abstract class and interface and what is difference .please help me
The company is a fake company asking for money of RS10000 while training and not offering a job after training. My humble request to you people not to attend Astersys interview
What is pointer in oop?
Whats is abstraction in oops?
what is the new version of oops
How do you make derived class as an abstract class?
Can we define a class within the interface?