Practical Approach to Object Oriented Programming By M Usman

This forum is aimed at students with little or no programming experience. It aims to provide students with an understanding of the role computation can play in solving problems.
Forum rules
This forum aims to provide material related to computer programming languages, tools and designs.

Re: Practical Approach to Object Oriented Programming By M Usman

Unread postby 13962 » Thu May 28, 2015 8:31 am

This practical book by two industry leaders continues to be a self-teaching guide for software analysts and developers. This revised edition teaches readers how to actually "do" object-oriented modeling using UML notation as well as how to implement the model using C++. The authors introduce all of the basic object-oriented fundamentals necessary so readers can understand and apply the object-oriented paradigm.
User avatar
13962
 
Posts: 3
Joined: Tue Mar 31, 2015 7:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: Practical Approach to Object Oriented Programming By M Usman

Unread postby Tariq ahmed » Thu May 28, 2015 6:46 pm

Tariq Ahmed
cms 14357

Practical Approach To Object Oriented Programming

Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which are data structures that contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods. A distinguishing feature of objects is that an object's procedures can access and often modify the data fields of the object with which they are associated (objects have a notion of "this"). In OO programming, computer programs are designed by making them out of objects that interact with one another. There is significant diversity in object-oriented programming, but most popular languages are class-based, meaning that objects are instances of classes, which typically also determines their type.

Many of the most widely used programming languages are multi-paradigm programming languages that support object-oriented programming to a greater or lesser degree, typically in combination with imperative, procedural programming. Significant object-oriented languages include Python, C++, Objective-C, Smalltalk, Delphi, Java, C#, Perl, Ruby and PHP.
Object-oriented programming languages typically share low-level features with high-level procedural programming languages (which were invented first). The fundamental tools that can be used to construct a program include:

Variables which can store information formatted in a small number of built-in data types like integers and alphanumeric characters. This may include data structures like strings, lists and hash tables that are either built-in or result from combining variables using memory pointers
Procedures - also known as functions, routines, or subroutines - that take input, send output, and manipulate data. Modern languages include structured programming constructs like loops and conditionals.

Modular programming support provides the ability to group procedures into files and modules for organizational purposes. Modules are namespaced so code in one module doesn't need to worry about accidentally using the same procedure or variable name as another module.


An Object-Oriented Program Example
public class Map extends Object {
private Vector nodes;
void put(Comparable key, Object value) {
nodes.add(new Node(key, value));
}
Object get(Comparable k) {
Iterator i = nodes.iterator();
while (i.hasNext()) {
Node mn = (Node) i.next();
if (((Comparable) mn.key).equals(k))
return mn.value;
}
return null;
}
}
class Node {
public Object key; public Object value;
Node(Object key, Object value) {
this.key = key; this.value = value;
}
}
User avatar
Tariq ahmed
 
Posts: 4
Joined: Thu Apr 02, 2015 7:25 am
Has thanked: 0 time
Been thanked: 0 time

Re: Practical Approach to Object Oriented Programming By M Usman

Unread postby Israr Saleem » Thu May 28, 2015 7:04 pm

Section: A
israr saleem
cms 14411
Practical approach to Object Oriented Programming
Abstract:
Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data.
Introduction:
The programming challenge was seen as how to write the logic, not how to define the data. Object-oriented programming takes the view that what we really care about are the objects we want to manipulate rather than the logic required to manipulate them. Examples of objects range from human beings (described by name, address, and so forth) to buildings and floors (whose properties can be described and managed) down to the little widgets on a computer desktop (such as buttons and scroll bars).
The first step in OOP is to identify all the objects the programmer wants to manipulate and how they relate to each other, an exercise often known as data modeling. Once an object has been identified, it is generalized as a class of objects, which defines the kind of data it contains and any logic sequences that can manipulate it. Each distinct logic sequence is known as a method. Objects communicate with well-defined interfaces called messages.
User avatar
Israr Saleem
 
Posts: 3
Joined: Thu Apr 02, 2015 7:30 am
Has thanked: 0 time
Been thanked: 0 time

Re: Practical Approach to Object Oriented Programming By M Usman

Unread postby inamullah13911 » Thu May 28, 2015 9:10 pm

Name: Inam Ullah
CMS# 13911
Section A

What is object oriented programming?

OBJECT ORIENTED PROGRAMMING:-
Object Oriented Programming is a type of programming language which organized for actions and data's. A program is known as logical when we give inputs input data, process it, and returns the out put.

The First step in OOP is to identify the data and inputs then to process it, to get the outputs. In OO programming, computer programs are designed by making them out of objects that interact with one another. There is significant diversity in object-oriented programming, but most popular languages are class-based, meaning that objects are instances of classes, which typically also determines their type


:TH:
User avatar
inamullah13911
 
Posts: 2
Joined: Wed Apr 29, 2015 8:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Practical Approach to Object Oriented Programming By M Usman

Unread postby hamzakhalid » Sun May 31, 2015 8:41 pm

CMS # 13947
Practical approach to Object Oriented Programming
Definition:
Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data.
It has been seen that a program is basically a logical procedure that takes input data from the user, processes it and produces output data as useful information.
The programming challenge is not how to define a data; however it’s to write the logic. OOP takes the view that what we really care about are the objects we want to manipulate rather than the logic required to manipulate them.
Procedure:
First we identify all the objects the programmer wants to manipulate and how they relate to each other, an exercise often known as “Data Modeling”. Once an object has been identified, it is than generalized as a class of objects which defines the kind of data it contains and any logic sequences that can manipulate it. Each distinct logic sequence is logic known as “method”. Objects communicate with well-defined logic sequence is known as “method”.
Many of the most widely used programming languages are multi-paradigm programming languages that support object-oriented programming to a greater or lesser degree, typically in combination with imperative, procedural programming. Significant object-oriented languages include Python, C++, Objective-C, Smalltalk, Delphi, Java etc.
User avatar
hamzakhalid
 
Posts: 3
Joined: Tue May 12, 2015 8:29 pm
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to Computer Sciences & Programming

Who is online

Users browsing this forum: No registered users and 2 guests

cron