My lab solutions for Object-Oriented Programming course at Sukkur IBA University. I'm documenting my learning journey through Java programming, from basic syntax to advanced OOP concepts.
Repository - Solutions uploaded as I complete each lab
View Lab 1
View Lab 2
View Lab 3
View Lab 4
Introduction to Java fundamentals including history, features, installation, basic syntax, variables, data types, input/output operations, and type conversion.
Topics Covered:
- Java environment setup
- Variables and data types
- Input/Output with Scanner
- Type casting and conversion
- Arrays
- Control structures
- Error handling and debugging
Understanding and implementing different types of methods, parameters, return values, and control statements.
Topics Covered:
- Method types and syntax
- Parameters and return values
- Control statements (if-else, switch, ternary)
- String methods
- Array methods
- Math class functions
- Command-line arguments
- Code organization and modularity
Core object-oriented programming concepts including objects, instance methods, constructors, and encapsulation.
Topics Covered:
- Static vs non-static members
- Classes and objects
- Instance variables and methods
- Object references and aliasing
- Constructors
- Encapsulation with private fields
- Getters and setters
- The
thiskeyword
Core object-oriented programming concepts including class hierarchies, inheritance, method overriding, and polymorphic behavior.
- Inheritance and the
extendskeyword - Superclass and subclass relationships
- Method overriding
- The
superkeyword - Polymorphism and dynamic binding
- Abstract classes and methods
- The
instanceofoperator - Access modifiers (
protected)
This repository contains my lab solutions for the Object-Oriented Programming course at Sukkur IBA University. I'm uploading my solutions as I complete each lab to track my progress and share my learning journey.
-
Clone this repository:
git clone https://github.com/qadyyr/oop-java-labs.git cd oop-java-labs -
Browse the labs - Each lab is documented in a markdown file (Lab1.md, Lab2.md, Lab3.md)
-
View solutions - Solutions are included within each lab's markdown file
-
Run the code:
javac YourProgram.java java YourProgram
- Java Development Kit (JDK) 8 or higher
- Text editor or IDE (VS Code, IntelliJ IDEA, Eclipse)
- Start with Lab 1 - Get comfortable with Java basics, syntax, and control structures
- Progress to Lab 2 - Learn to organize code using methods
- Move to Lab 3 - Understand object-oriented programming fundamentals
- Java syntax and fundamentals
- Problem-solving with algorithms
- Code organization and modularity
- Object-oriented programming concepts
- Encapsulation and data hiding
- Working with objects and classes
- Debugging and error handling
OOP-Spring2026/
├── README.md # This file
├── Lab1.md # Lab 1: Introduction to Java
├── Lab2.md # Lab 2: Methods in Java
└── Lab3.md # Lab 3: Objects & Encapsulation
If you spot any errors or have suggestions for improvement, feel free to open an issue or reach out!
- GitHub: @qadyyr
- Emal: qadyyr@gmail.com
- Feel free to star ⭐ this repo if you find it helpful!
These are my personal solutions to lab exercises. While I strive for accuracy, there may be alternative or better approaches. Use these as a reference for learning, not just copying.
This repository is for educational purposes. Feel free to use it for learning.
Course: CSC-150 - Object Oriented Programming
Semester: Spring 2026
Student At: Sukkur IBA University
Last Updated: February 2025