Sunday, January 17, 2010

Object-Oriented Development

After spending time in understanding syntax of OOPS languages, it becomes imperative to enter the real world and understand how efficiently problems are mapped to behavior of OOPS objects. At many workstations, this is achieved via a language platform UML.



UML stands for unified modelling language, which via pictorial representations tries to resolve the possible states of the process.To appreciate this language more, lets have a quick recap of some important terms:



1. Abstract Class: No implementation method defined for an operation



2. Actor: Role taken by user while invoking a use case



3. Classifier: A category of UML elements that have some common features



4. Containment by Value: An object contains another object



5. Containment by Reference: An object contains a pointer to another object



6. Join: A point in an activity diagram where several concurrent flows synchronize, waiting until all are complete before continuing with a single flow



7. Namespace : A context in which an identifier exists



8. Package: Grouping of classes with related functionality



9. Template: A class that accepts a compile-time parameter defining the type to be used within the class









Links for reference:

http://en.wikipedia.org/wiki/unified_modeling_language



http://www.modelica.org/







Quiz:

1. Discuss the interacting objects while writing SW for a telephone answering machine.

2. Will this technique be helpful for dynamic or digital models?

3 comments:

Unknown said...

I would differ on the point of Abstract Class. An abstract class need not necessarily be a class with no implementation defined. An abstract class usually serves as a point of extension, but can surely have both implementations to various operations, and also have the final implementations.

Also, a package may not necessarily be grouping of classes with related functionality. They may also be grouped on the basis of layers in an n-tier architecture (though most widely used in web applications).

I would like readers to answer one more questions here, if you won't mind! How does namespace and templates aid in coding, what are their advantages and disadvantages?

Pilot-Pooja said...

As told by Bjarne Stroustrup:


Templates are used in the field for various reasons, the main one being to take advantage of generic programming. The importance of templates is evidenced by the introduction of a robust library in the C++ ISO standard. The library of algorithms and containers is called the Standard Template Library, or STL for short. It uses templates to implement an efficient code base that is reusable and extensible.

But templates have a few negative aspects that are not widely explored. First, since C++ does not have binary run-time extensibility, templates can't be linked and distributed as a library. They must be compiled at compile time, and, therefore, all implementations of a template algorithm must be included in the header files in their entirety. You can easily see this by analyzing the STL standard header files.

Anonymous said...

?Essay for 2017 Software
Below are essay prompts with the 2017 General Software plus the Coalition Software. Both equally first-time college students (long term freshmen) and transfer students use either the Very common Software or the Coalition Software to apply to Purdue. For 2017 enrollment, these purposes will be offered in early August 2016. 
Guidelines
When applying to Purdue you should make use of the Normal Software OR the Coalition Software, not the two.
Do your research. Select your essay prompt(s) by number one deciding which colleges you plan to apply to. If all the colleges you plan to apply to employ the Prevalent Software, this software may be the most effective choice for you. If all make use of the Coalition Software, that may be the superior choice. Although Purdue utilizes the two, some colleges only use a person or another.
The essay demonstrates your ability to write down clearly and concisely on the selected topic and helps you distinguish yourself inside your personal voice. What do you need the readers of your software to know about you apart from courses, grades, and check scores? Purdue's own Via the internet Crafting Lab  delivers advice on crafting essays for college purposes.
First-Time College Students (Freshmen)
The Prevalent Software Freshman Essay Prompts (required minimum-maximum word count: 250-650)
Some students have a background, identity, interest, or talent that is certainly so meaningful they believe their software would be incomplete without it. If this sounds like you, then please share your story.
The lessons we take from failure tends to be fundamental to later success. Recount an incident or time once you knowledgeable failure. How did it affect you, and what did you learn from the have?
Reflect over a time should you challenged a belief or idea. What prompted you to definitely act? Would you make the same decision again?
Describe a problem you've solved or a problem you'd like to solve. It are usually an intellectual challenge, a research query, an ethical dilemma - anything that is certainly of personal importance, no matter the scale. Explain its significance to you and what steps you took or could be taken to identify a method.
Discuss an accomplishment or event, formal or informal, that marked your transition from childhood to adulthood within just your culture, community, or family.
The Coalition Software Freshman Essay Prompts (recommended minimum-maximum word count: 300-500)
Tell a story from your life, describing an knowledge that either demonstrates your character or helped to shape it.
Describe a time whenever you made a meaningful contribution to others in which the greater brilliant was your focus. Discuss the challenges and rewards of making your contribution.
Has there been a time when you’ve had a long-cherished or accepted belief challenged? How did you respond? How did the challenge affect your beliefs?
What is the hardest part of being a teenager now? What’s the leading part? What advice would you give a younger sibling or friend (assuming they would listen to you)?
Post an essay with a topic of your choice.
College Transfer Students 
Essay Prompt to the Familiar and Coalition Apps - same for equally (minimum/maximum word count: 250-650)
Please provide you with a statement that addresses your reasons for transferring and also objectives you hope to realize.  [url=http://www.uliasha.pl/video/nie-pozwol/]essay writer[/url]


Mindbox