Please tell me the oops concept with detailed answer
Answers were Sorted based on User's Feedback
Answer / saranya
the basic concepts of OOP's are
1.class- it is a collection of variables and methods
2.odjects- it is the run time entity(it is same as real
world objects)
3.data abstraction and encapsulation-essential features of
data not including the background details
4.polymorphism-same name with more than one form
5.inheritance-concept of acquiring the base class properties
there are 5 types of inheritance
1.single inheritance
2.multiple inheritance
3.multilevel inheritance
4.hierarchical inheritance
5.hybrid inheritance
6.dynamic binding- data bind at runtime
7.message passing-communicating information with one another
| Is This Answer Correct ? | 21 Yes | 2 No |
Answer / m.shanmuga sundaram
Oops is an acronym for object oriented programming language
or object oriented paradigm
Building blocks of oops are
1) Data Encapsulation :
Hiding non essential things from an user
2) Abstraction
Implementation of data encapsulation
3) Inhertitance
Reusability of code
4) Polymorphism
The ability of a function that can act on different data
types in different ways
| Is This Answer Correct ? | 12 Yes | 3 No |
Answer / mahesh_b.tech@2008
There are mainly 4 object oriented principals.
1)ABSTAACTION:process of providing necessary properties &
operations of an object.
2)ENCAPSULATION:process of providing all the properties
&operations of entity in one place.
properties...>variables
operations...>methods
place ...>class
3)INHERITANCE:process of writing a new class(derived
class,sub class,chiled class) by using the functionality of
existing class(super class,base class,parent class)
4)POLYMORPHISM:one form behaving differently in different
situations.
ex:tv remote button,same button used to make the tv on &
off.
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / priya
c++ supports oops concept
that are
1.encapsulation
(gathring all information in to a single unit)
2.Polymorphism
(The ability of a function that can act on different
data types in different ways)
3 Abstraction
(Implementation of data encapsulation)
4.class- it is a collection of variables and methods
5.odjects- it is the run time entity(it is same as real
world objects)
6.inheritance-
concept of acquiring the base class properties
there are 5 types of inheritance
1.single inheritance
2.multiple inheritance
3.multilevel inheritance
4.hierarchical inheritance
5.hybrid inheritance
7.dynamic binding- data bind at runtime
8.message passing-communicating information with one another
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / vishal
Fundamental concepts of OOPS
1.Object
2.Encapsulation
3.Object Reuse using
-Abstract classes
-Interface
-Inheritance
-Composition
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sathya
oops means that object oriented programming, the precedure
ifollowed inc lan...
| Is This Answer Correct ? | 8 Yes | 9 No |
Answer / afrina
oops concept:
class,object,data abstraction,data encapsulation,inheritance
and polymorphism.....
| Is This Answer Correct ? | 2 Yes | 4 No |
how to swap to variables without using thrid variable in java?
what is the need of abstraction? what is abstraction?what is the abstraction for stack?
What is destructor example?
When will a constructor executed?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is encapsulation example?
What is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5
What is coupling in oop?
what is mean by design pattern
What is namespace?
Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation
which feature are not hold visual basic of oop?