When a child is born, most of his needs are fulfilled by parents. An example of abstract classes. The object(ive) of child is materialized. ASP.NET object. The child is gradually exposed to methods after his exposure to the world. Textbox methods, gridview methods after the exposed ASP.NET methods.
The child develops intelligence from internet, HTML and web. ASP.NET object.
However, .NET object keeps a count of internet usage and times ASP.NET. ASP.NET for finance, ASP.NET for news, ASP.NET for medical science etc. .NET object counting is Generics. An OOPS concept.
The child uses daddy's laptop, password for ASP.NET internet. This is inheritance. An OOPS concept.
Gradually, the child grows up and realizes he needs to get his work done. He uses his hand and gets money. Maybe from daddy. The hand is the interface. An OOPS concept.
The child gives the money to his servant using hand and gets biscuits. The servant is the delegate. An OOPS concept.
The child gives the money to his friend for ice-creams. Vanilla ice cream and Strawberry ice cream. The hand is encapsulated for these two purposes. An OOPS concept.
The child may be mischievous and disobey all these rules of daddy. He overrides daddy's instruction. An OOPS concept.
Meanwhile, the daddy gets older. He begins to introspect. What is he about? He is an object from an abstract class. But is that enough? Has he not been constructed? Is not there a destruction? Does he not have methods? Does he not have exceptions? Does he not collect garbage? His own. Does he not believe in start to finish?
Improvement. I get 7 out of 12 marks.
The child develops intelligence from internet, HTML and web. ASP.NET object.
However, .NET object keeps a count of internet usage and times ASP.NET. ASP.NET for finance, ASP.NET for news, ASP.NET for medical science etc. .NET object counting is Generics. An OOPS concept.
The child uses daddy's laptop, password for ASP.NET internet. This is inheritance. An OOPS concept.
Gradually, the child grows up and realizes he needs to get his work done. He uses his hand and gets money. Maybe from daddy. The hand is the interface. An OOPS concept.
The child gives the money to his servant using hand and gets biscuits. The servant is the delegate. An OOPS concept.
The child gives the money to his friend for ice-creams. Vanilla ice cream and Strawberry ice cream. The hand is encapsulated for these two purposes. An OOPS concept.
The child may be mischievous and disobey all these rules of daddy. He overrides daddy's instruction. An OOPS concept.
Meanwhile, the daddy gets older. He begins to introspect. What is he about? He is an object from an abstract class. But is that enough? Has he not been constructed? Is not there a destruction? Does he not have methods? Does he not have exceptions? Does he not collect garbage? His own. Does he not believe in start to finish?
Improvement. I get 7 out of 12 marks.
10 comments:
I am not very clear in interface and delegates.
Interface has the definition of what. A programmer write how. Also interface is similar to abstract class.
I must get 10 out of 12 for interface.
Delegate is similar to pointer to functions.
I must get 8 out of 12.
Generic was a wild guess.
6 out of 12 then.
I must get 0 out of 12 in generic.
interesting connection between programming and growing up
I don't know much about this.But a child's need of the era is well picturized here.
Thanks sm.
Thanks rudraprayaga.
The reason for this post is this.
What is the relation between software and life?
Answer is OOPS. My answer.
Post a Comment