Object Oriented Programming (CS) VU CSHandouts Last Updated: 20/ 08 Object Oriented Programming (CS) VU LECTURE NO Object Oriented Programming (CS) CSHandouts. Download. Object Oriented Programming (CS) CSHandouts. Uploaded by. B. Moeen Ali. CS Complete Handouts 1 to 45 lectures in signle pdf file.

Author: Zulkijora Nikokasa
Country: Canada
Language: English (Spanish)
Genre: Finance
Published (Last): 13 December 2015
Pages: 494
PDF File Size: 2.85 Mb
ePub File Size: 10.96 Mb
ISBN: 152-9-27991-430-3
Downloads: 88704
Price: Free* [*Free Regsitration Required]
Uploader: Tygole

Solution Uandouts can solve this problem by explicitly calling eat method from any of the parent classes in Mermaid class according to behaviour of Mermaid i. This course is an introduction to objectoriented programming using the Java language. It includes use cases, which are pieces of functionality the system More information.

Analyze customer software needs and system requirements to design an information technology-based project plan. So we say that attributes and behavior of Ali are encapsulated in it. There are two main types of association which are then further handotus i.

Object Oriented Programming (CS) CSHandouts | bc MOEEN ALI –

Java Interview Questions and Answers 1. The Software Development Life Cycle: Gear Box in car system Consider object Gear Box in car system it has a certain structure and functionality. Class Example 1 Consider the objects given below, Ali studies mathematics Anam studies physics Sohail studies chemistry Each one is a Student so we say these objects are instances of the Student class. It is a reference by which one object can interact with some other object.

Technology and Society Interaction Standard 2: Student has cs34 extra attributes program and studyyear Similarly it has extended behaviour by adding study and takeexam. Handoutss Association Virtual University of Pakistan What is an Object-Oriented Programming Language?

What is the most important feature of Java? Slides will be available on: We can achieve information hiding using Encapsulation and Abstraction, so we see these two concepts in detail now, Encapsulation Encapsulation means we have enclosed all the characteristics of an object in the object itself Encapsulation and information hiding are much related concepts information hiding is achieved using Encapsulation We have seen in previous lecture that object characteristics include data members and behavior of the object in the form of functions.

  IBV 6072 PDF

Database Modeling Part 1 Entity. Objective of this course is to make students familiar with the concepts of object oriented programming. Classes are arranged in hierarchies sharing common More information.

Presentation Layer The presentation layer is concerned with preserving the meaning of information sent across a network. Design of an E-R Database Schema! Key Concepts of Programming and Software Engineering Software Engineering Coding without a solution design increases debugging time – known fact! Satisfy all More information. There may be more than one aspects of an object It is not necessary that every object has a specific role in implementation of a problem there may be some objects without any role, like school parking in our school.

Linux Lab 0 0 4 2 1 Write a shell script to input two numbers and perform all mathematical operations on them 2 Write a shell script to print the information about. Unified Modeling More information. In that case we will use the concept of specialization.

This is achieved through the concepts of encapsulation and information hiding.

Object Oriented Programming (CS304)

Neil Harrison PC Member: The need of future Automated Virtual Cloud Management: Something conceptual that can be apprehended intellectually for example time, date and so on. Platform independence means that we can write and compile the java More information.


We make Object Oriented models showing several interacting objects to understand a system haandouts to us for implementation. For getting this information we need to ask Ali about it and it will be up to Ali how much details he would like to share with us. We need models to understand an aspect of reality. Example Specific Behaviour Specialization Shape color vertices draw move setcolor Circle radius draw computearea length draw Line angle Triangle draw computearea 34 Virtual University of Pakistan.

Same thing stands for its behavior if some other object in real life wants to use his ca304 of walking it can not use it without the permission of Ali. We use Object Orientation because it helps us in mapping real world problem in a programming language. Student has School Bag, Book and Pen Object-Orientation – Advantages As Object Oriented Models map directly to reality as we have seen in examples above therefore, We can easily develop an object oriented model for a problem.


Basic Programming Logic Explain the steps involved in the program development cycle More information.

As we saw earlier that our object oriented model only had objects and their interactions hiding implementation details so it makes it easier for everyone to understand our object oriented model. An object keeps association with other objects to delegate tasks. It is a barrier against change propagation As implementation of functions is limited to our class and we have only given the name of functions to user along with description of parameters so if we change implementation of function it doesn t affect the object oriented model.

Object Oriented Programming (CS304) CS304-Handouts. Virtual University of Pakistan 1

By Information Hiding we mean Showing only those details to the outside world which are necessary for the outside world and hiding all other details from the outside world. In this lecture handoufs will learn: The number and kind of messages that can be sent to an object depends upon its interface Examples Messages A Person sends message stimulus stop to a Car by applying brakes A Person sends message place call to a Phone by pressing appropriate button Summary Information hiding is achieved through encapsulation.

We saw inheritance purposes in last lecture Generalization Extention or sub typing Specialization or restriction Abstract and concrete classes, former is used to represent abstract concepts later is used to represent concrete concepts. Ambiguity Consider the class hierarchy of Mermaid class below, Woman Fish eat eat Mermaid As mermaid also needs to eat and its both parents have their own methods of eating so here question arises, Which eat operation Mermaid should inherit as both functions are available?