Object Oriented Programming - JAVA and VISUAL BASIC, lecture notes, A. SINGH, Study notes for Object Oriented Programming. Biyani Girls College

Object Oriented Programming

Description: Object Oriented Programming (Java and Visual Basic) (BCA Part-II) Shipra Rastogi GNIIT, 'A' Level Lecturer Deptt. of Information Technology Biyani Girls College, Jaipur Hastlipi, Jaipur //////////////////////////////////////////////// Syllabus B.C.A. Part-II Object Oriented Programming Through Java Constants, Variables, Data Types, Arithmetic Operations, Relational Operators, Logical Operators, Assignment Operators, Increment and Decrement Operator, Conditional Operator, Bit-wise Operator, Arithmetic Expression, Type Conversion in Expressions, Mathematical Functions, Decision Control Structure, Loop Control Structure, Classes, Objects and Methods, Boolean Methods, Void Methods, Overloading, Nesting of Methods, Constructors, Class Invariants, Composition, Recursive Classes, Extending a Class, Overriding Method, Inheritance versus Compositions, Class Hierarchies, Arrays and Vector, String Arrays, Wrapper (Classes), Defining, Extending and Implementing Interfaces, Accessing Interface Variables, Graphics, Managing Layouts, Event Driven Programming, Applets, Thread and Exceptions, Managing Input Output Files, Reusable Classes, Searching, Sorting and Recursive Algorithims. Object Oriented Programming Through Visual Basic Object Model, Visual Basic Environment, Visual Basic Code Statements, Controls, Coding for the Controls, Variables, Constants and Calculations, Decision Control Structure, Loop Control Structure, Nested Ifs Statement, Input Validations, Calling Event Procedures, Menus, Sub Procedures and Sub Functions, Multiple Forms, Variables and Constants in Multiple Form Projects, List Boxes and Combo Boxes, Using Mfg Box and String Function, Arrays, Using List Boxes and Arrays, Multidirectional Arrays, Classes, Initializing and Terminating Events, Collections, Using the Object Browser, Data Files, Sequential File Organisation, Random Data Files, Accessing Database Files, Navigation the Database in Code, Displaying Data in Grids, Validation and Error Trapping, Dragging and Dropping Multiple Objects, Graphics, Layering, Simple Animation, Active X, Dynamic Link Libraries, Object Linking and Optimizing VB Code, OLE Automation and VBA, Automating Word, Excel and Outlook 98. Show more
Showing pages  1  -  4  of  16
Object Oriented Programming
(Java and Visual Basic)
(BCA Part-II)
Shipra Rastogi
GNIIT, 'A' Level
Lecturer
Deptt. of Information Technology
Biyani Girls College, Jaipur
Hastlipi, Jaipur
I
Syllabus
B.C.A. Part-II
Object Oriented Programming Through Java
Constants, Variables, Data Types, Arithmetic Operations, Relational Operators, Logical
Operators, Assignment Operators, Increment and Decrement Operator, Conditional
Operator, Bit-wise Operator, Arithmetic Expression, Type Conversion in Expressions,
Mathematical Functions, Decision Control Structure, Loop Control Structure, Classes,
Objects and Methods, Boolean Methods, Void Methods, Overloading, Nesting of
Methods, Constructors, Class Invariants, Composition, Recursive Classes, Extending a
Class, Overriding Method, Inheritance versus Compositions, Class Hierarchies, Arrays
and Vector, String Arrays, Wrapper (Classes), Defining, Extending and Implementing
Interfaces, Accessing Interface Variables, Graphics, Managing Layouts, Event Driven
Programming, Applets, Thread and Exceptions, Managing Input Output Files, Reusable
Classes, Searching, Sorting and Recursive Algorithims.
Object Oriented Programming Through Visual Basic
Object Model, Visual Basic Environment, Visual Basic Code Statements, Controls,
Coding for the Controls, Variables, Constants and Calculations, Decision Control
Structure, Loop Control Structure, Nested Ifs Statement, Input Validations, Calling
Event Procedures, Menus, Sub Procedures and Sub Functions, Multiple Forms,
Variables and Constants in Multiple Form Projects, List Boxes and Combo Boxes, Using
Mfg Box and String Function, Arrays, Using List Boxes and Arrays, Multidirectional
Arrays, Classes, Initializing and Terminating Events, Collections, Using the Object
Browser, Data Files, Sequential File Organisation, Random Data Files, Accessing
Database Files, Navigation the Database in Code, Displaying Data in Grids, Validation
and Error Trapping, Dragging and Dropping Multiple Objects, Graphics, Layering,
Simple Animation, Active X, Dynamic Link Libraries, Object Linking and Optimizing
VB Code, OLE Automation and VBA, Automating Word, Excel and Outlook 98.
Content
Part-I (Java)
S.No. Name of Topic Page No.
1. Basics of Object Oriented Programming 9-11
1.1 Necessity of Object Oriented Programming over
Procedural Programming
1.2 Essentials of Object Oriented Programming
2. Applets 12-13
2.1 Web Programming through Applets
2.2 Processing Input with Applets
3. Java Interpreter and Runtime Environment 14-16
3.1 Memory Management
4. Basic Features of Java Language 17-31
4.1 Constants
4.2 Variables
4.3 Data Types
4.4 Different Types of Operators
4.5 Boolean Methods
4.6 Classes and Objects
5. Declaration of Arrays 32-33
5.1 Arrays Declaration
5.2 String Arrays
6. Control Structures of Java Language 34-41
6.1 Decision Control Structure
6.2 Loop Control Structure
S.No. Name of Topic Page No.
7. Constructors in JAVA 42-44
7.1 Constructors Declaration
8. Nesting of Classes 45-47
8.1 Nested Classes
9. Interfaces and Inheritance 48-64
9.1 Interfaces
9.2 Inheritance
9.3 Method Overloading
9.4 Method Overriding
9.5 Abstract Methods and Classes
10. Strings and their Manipulation 65-66
10.1 Strings Declaration
11. Packages in ‘JAVA’ 67-68
11.1 Classes and Packages
12. Basic Input/Output Streams 69-73
12.1 Managing Input/Output Files
13. Threads and their working 74-77
13.1 Lifecycle of a Thread
13.2 Multithreading
14. Exception Handling 78-81
14.1 Exceptions
15. Graphics Programming 82-84
15.1 Graphics Functions
Part-II (Visual Basic)
S.No. Name of Topic Page No.
1. Integrated Development Environment 87-90
1.1 Visual Basic Environment
2. Basic Programming Concepts 91-94
2.1 Controls
2.2 Properties
2.3 Variables Constants
3. Array Declaration 95-96
3.1 Arrays
3.2 Multidimensional Arrays
4. Procedural Programming 97-98
4.1 Objects and Modules
4.2 Procedures (Sub Procedures and Sub Functions)
4.3 Functions
5. Branching and Looping Constructs 99-103
5.1 Loop Control Structures
5.2 Decision Control Procedures
6. Forms 104-105
6.1 Multiple Forms
S.No. Name of Topic Page No.
7. Programming Methodologies and Controls available in
VB
106-116
7.1 Global and Public Variables
7.2 Active and Deactivate Events
7.3 Active X Controls
7.4 List Box, Combo Box and Text Box Controls
8. Active X Components and Data Objects 117-119
8.1 Object Linking and Optimizing VB Code
8.2 Active X Data Objects
Examination Paper 2008 120-126
Chapter-1
Basics of Object Oriented Programming
Q.1 What is the difference between Procedural and Object Oriented
Programming?
Ans.: The different languages reflect the different styles of programming. Procedural
programming decomposes a program into various different functional units,
each of which can gather and manipulate data as needed. Object-oriented
programming, on the other hand, decomposes a program into various different
data-oriented units or other conceptual units; each unit contains data and various
operations that may be performed on that data.
Procedural programming forced developers to write highly interdependent code.
A minor change in any part of the code may end up with a bigger modification of
large pieces of code. This way of programming is not up to the mark when the
user interactivity is higher.Using OOP, a developer can break down any real
world item into a collection of objects. These individual objects can be used
separately and collectively to accomplish the requirements.
We can summarize the differences as follows :
Procedural Programming
– top down design
– create functions to do small tasks
– communicate by parameters and return values
Object Oriented Programming
– design and represent objects
– determine relationships between objects
– determine attributes each object has
– determine behaviours each object will respond to
– create objects and send messages to them to use or manipulate their
attributes
Q.2 What are the basic features of Object Oriented Programming?
Ans.: Object Oriented Programming (OOP) is a programming paradigm that uses
"objects" and their interactions to design applications and computer programs. It
is based on several techniques, including encapsulation, modularity,
polymorphism, and inheritance.
Inheritance : ‘Subclasses’ are more specialized versions of a class, which
inherit attributes and behaviors from their parent classes, and can introduce
their own. Inheritance is inheriting a class into another class.
Encapsulation : Encapsulation conceals the functional details of a class from
objects that send messages to it. This is hiding the internal details.
Abstraction : Abstraction is simplifying complex reality by modelling classes
appropriate to the problem, and working at the most appropriate level of
inheritance for a given aspect of the problem. Building class is an abstraction
process.
Polymorphism : Multiple objects exhibiting similar features in different ways
is known as polymorphism. Polymorphism is the process of using an
operator or function in different ways for different set of inputs given.
Q.3 What are the basic differences between C++ and Java?
Ans.: C++ and Java both are Object Oriented Languages but some of the features of
The preview of this document ends here! Please or to read the full document or to download it.
Document information
Embed this document:
Docsity is not optimized for the browser you're using. In order to have a better experience please switch to Google Chrome, Firefox, Internet Explorer 9+ or Safari! Download Google Chrome