Click here to Skip to main content
15,888,025 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Where are we using the OOP concepts in real time? I'm in the learning phase now.
It'll be helpful for me.
Thanks in advance

regards,
siv
Posted
Updated 1-Nov-11 2:22am
v2
Comments
OriginalGriff 1-Nov-11 8:19am    
What do you mean by "real time"? I know what I mean by "real time" and I know what Wiki means by "real time" - I'm just not sure you do...

1 solution

You didn't specify what language interests you, or if you're just interested in OOP generally.

Overriding is used in a class that subclasses another class to replace or augment the functionality of a method, event or property of the parent class.

For example, in the article that I published yesterday[^], HighlightFilter subclasses Filter and overrides the OnFilter method in order to add additional functionality that isn't implemented by the base class (see the class diagram).

See also:
Inheritance (C# Programming Guide)[^]
Polymorphism (C# Programming Guide)[^]

These concepts are common to all object-oriented programming languages (OOP).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900