What are the OOPS concepts?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1669


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6485


What is overloading in oops?

598


What are different oops concepts?

578


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1147






what is the drawback of classical methods in oops?

2920


What is the renewal class?

2169


What is abstraction with example?

607


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

1621


Why we use classes in oop?

583


What are objects in oop?

610


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1837


Why do we use inheritance?

630


State what is encapsulation and friend function?

699


What is solid in oops?

612