What are the OOPS concepts?
Answer Posted / 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 |
Post New Answer View All Answers
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is variable example?
What is abstraction in oops?
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
What is encapsulation in ict?
What is polymorphism oop?
What is the example of polymorphism?
What is the full form of oops?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is abstraction example?
What does and I oop mean in text?
Which language is not a true object oriented programming language?
What are the advantages of polymorphism?