Skip to content

singhalok641/LLDSep2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLDSep2023 Repository

This repository contains Java code examples and exercises related to various object-oriented programming concepts. Below is a brief overview of the main topics covered:

1. Access Modifiers

  • Student Class: Demonstrates the use of different access modifiers such as private, default, protected, and public. View Code
  • Client Class: A client class that tries to access the members of the Student class. View Code
  • Instructor Class: Another class that interacts with the Student class. View Code
  • Access Modifiers Check: Contains classes that check the accessibility of members with different access modifiers. View Code

2. Constructor Chaining

  • Demonstrates the concept of constructor chaining across multiple classes (A, B, C, and D). View Code

3. Constructors

  • Student Class: A simple class with member variables but without explicit constructors. View Code
  • Client Class: Demonstrates the creation of Student objects. View Code

4. Default Constructors

  • Student Class: A class with default values for its member variables. View Code
  • Client Class: Demonstrates the use of default constructors. View Code

5. Inheritance

  • User Class: A base class with a simple login method. View Code
  • Instructor Class: A derived class that extends User and introduces additional functionality. View Code
  • Client Class: Demonstrates the use of inheritance in Java. View Code

6. Assignments

  • Contains classes A and B with protected member variables and their interactions. View Code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages