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.

practical approach to object oriented language

Unread postby M.HAMZA(13963) » Sat May 23, 2015 9:47 am

A practical approach for developing a system incorporated with real-time speech compression is presented. This is a technique used in practice within the industrial sector for selecting and integrating DSP functionality into a large system. A three-stage technique is used to simulate, evaluate, debug and implement the CCITT G.728 low delay code excited linear prediction (LD-CELP) algorithm. In the first stage, the algorithm is evaluated via simulation to determine whether it meets the design criterion. Then, it is implemented in real-time based an object oriented approach. After the algorithm is thoroughly tested, it is further refined to obtain tighter and faster coding. This technique can be applied to other real-time DSP algorithms .
User avatar
Posts: 3
Joined: Fri Apr 10, 2015 5:18 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Practical Approach to Object Oriented Programming By M Usman

Unread postby MUHAMMAD IBRAHIM » Sat May 23, 2015 11:34 am

Muhammad Ibrahim

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);
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
Posts: 3
Joined: Sat May 16, 2015 11:15 am
Has thanked: 0 time
Been thanked: 0 time

Re: practical approach to object oriented language

Unread postby qandeel.malik » Sat May 23, 2015 2:32 pm

Practical Approach to Object-Oriented Programming
Qandeel Ahmad
CMS 14045

Object Oriented Programming (OOP) is to mean any kind of programming that uses a programming language with some object oriented programming in an environment where some object oriented principles are followed. Compared with procedural programming, a superficial examination of code written in both styles would reveal that object oriented code tends to be broken down into vast numbers of small pieces, with the hope that each piece will be trivially verifiable. OOP was one step towards the holy grail of software-re-usability, although no new term has gained widespread acceptance, which is why "OOP" is used to mean almost any modern programming distinct from systems programming, assembly programming, functional programming, or database programming. Modern programming would be better categorized as "multi-paradigm" programming, and that term is sometimes used. Object Oriented Programming Languages are
• Java
• C
• C++
• Smalltalk
• PHP etc.
If you've never used an object-oriented programming language before, you'll need to learn a few basic concepts before you can begin writing any code. This lesson will introduce you to objects, classes, inheritance, interfaces, and packages. Each discussion focuses on how these concepts relate to the real world, while simultaneously providing an introduction to the syntax of the.

Basics concept for Practical Approach to Object-Oriented Programming
An object is a software bundle of related state and behavior. Software objects are often used to model the real-world objects that you find in everyday life. This lesson explains how state and behavior are represented within an object, introduces the concept of data encapsulation, and explains the benefits of designing your software in this manner.
A class is a blueprint or prototype from which objects are created. This section defines a class that models the state and behavior of a real-world object. It intentionally focuses on the basics, showing how even a simple class cans cleanly model state and behavior.
Inheritance provides a powerful and natural mechanism for organizing and structuring your software. This section explains how classes inherit state and behavior from their super classes, and explains how to derive one class from another using the simple syntax provided by the Java programming language.
An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that interface. This section defines a simple interface and explains the necessary changes for any class that implements it.
A package is a namespace for organizing classes and interfaces in a logical manner. Placing your code into packages makes large software projects easier to manage. This section explains why this is useful, and introduces you to the Application Programming Interface (API) provided by the Java platform.
User avatar
Posts: 3
Joined: Sat May 23, 2015 9:24 am
Has thanked: 0 time
Been thanked: 0 time

Re: Practical Approach to Object Oriented Programming By M Usman

Unread postby Sajid Ullah 13756 » Sun May 24, 2015 8:59 pm

CMS# 13756

What is object oriented programming?

Object oriented programming:

It is a type of programming language which uses objects and data not logics and actions.
In object oriented programming we see the objects and how to manipulate it not the logic to manipulate them.

In Object Oriented Programming firstly we recognize the objects which we want to manipulate and how the objects are same to each other.

There are some features of object oriented programming:
1) Object
2) Class
4) Polymorphism
5) Dynamic Binding

User avatar
Sajid Ullah 13756
Posts: 3
Joined: Tue Mar 31, 2015 7:27 pm
Has thanked: 0 time
Been thanked: 0 time

practical approach of OOPS

Unread postby ahmed sharif » Mon May 25, 2015 5:58 pm

Object oriented programming (OOP) is a programming languagewhich model and organized around objects rather than actions and data rather than logic. A program can be know as a logical procedure that takes input data, processes it, and produces output data.
Object oriented programming has two types which are given as:-
1) Objects The structures that contain both data as well as procedures
2) Classes The class is the definitions for the data and procedures for a given class of object which may also contain data and procedures .
The example of class is given below "-
private int _sample;
public int Sample
// Return the value stored in a field.
get { return _sample; }
// Store the value in the field.
set { _sample = value; }
The example of object is given below :-
Normally the objects are keys which are used for the understanding of object oriented language Look around you ,then you find many examples of real world objects such as your dog, your desk, your television set, your bicycle e. t. c.
User avatar
ahmed sharif
Posts: 3
Joined: Sat Mar 28, 2015 9:18 pm
Has thanked: 0 time
Been thanked: 0 time


Return to Computer Sciences & Programming

Who is online

Users browsing this forum: No registered users and 1 guest