Delegation allows the behavior of an object to be defined in terms of the behavior of another object.
ie, Delegation is alternative to class inheritance. Delegation is a way of making object composition as powerful as inheritance. In delegation, two objects are involved in handling a request: a receiving object delegates operations to its delegate. this is analogous to the child classes sending requests to the parent classes.
Example in a Java/C# like language class A {
void foo() {
this.bar() // "this" is also known under the names "current", "me" and "self" in other languages
}
void bar() {
print("a.bar")
}
}
class B {
private A a; // delegationlink
public B(A a)
{
this.a = a;
}
void foo() {
a.foo() // call foo() on the a-instance
}
void bar() {
print("b.bar")
}
}
a = new A()
b = new B(a) // establish delegation between two objects
Calling b.foo()
will result in a.bar being printed, since class B "delegates" the method foo() to a given object of class A.
OOPS stands for object oriented programming in short . Characteristics of OOPs are : encapsulation, data hiding, polymorphism etc.
In container class we can only access the public part of base class. For accessing of private and protected part of base class we use friend functions.
OOPS refers to Object Oriented Programming Structure. Some common terms used in oops are # Inheritance # Polymorphism # Encapsulation # Data hiding etc..
Comedy pictures such as oops pictures can be viewed online on many websites or in some funny magazines. Examples of websites that contain funny oops pictures are the websites izismile and ebaumsworld.
Yes, like oops. (ta-boo) Its an Englsih word
delegation authority is to handle a certain job
its not a oops concept, its a procedural concept in data structure as well as data ananlysis n algorthim
Each entity is consider as a object
there is oops concept http://coders-blog.com/
Yes. Java is an Object Oriented Programming Language and it supports the OOPS concepts like Inheritance, Polymorphism etc
Single Inheritance is the concept of deriving a class properties from a single base class
because it dont not support oops concept
No, C++ is not a strict OOP language as like Java and C#. C++ supports all OOPS concept like Encapsulation, Polymorphism, Inheritance etc. But C++ provides a way to expose the private data to outside world using friend functions, which is a violation of OOPS.
A delegation of authority:
oops, i rather not.
She was part of a delegation
a delegation of authority: