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
How do you explain polymorphism?
What are the three parts of a simple empty class?
What is difference between oop and pop?
Can a varargs method be overloaded?
What is oops concept with example?
What does and I oop and sksksk mean?
What is class encapsulation?
What is destructor give example?
What is and I oop mean?
What is new keyword in oops?
What is object and class in oops?
What is stream in oop?
How does polymorphism work?
What is overloading and its types?
hi all..i want to know oops concepts clearly can any1 explain??