logo

Object Oriented Programming with Java

Develop and implement a well-designed modularised solution to a small programming problem.

9 Pages1142 Words153 Views
   

Added on  2022-11-30

About This Document

This document provides an introduction to Object Oriented Programming with Java. It includes source code examples and explanations of concepts such as classes, objects, and inheritance. The document also covers topics like input/output, calculations, and data manipulation. The document is suitable for beginners and intermediate learners of Java programming.

Object Oriented Programming with Java

Develop and implement a well-designed modularised solution to a small programming problem.

   Added on 2022-11-30

ShareRelated Documents
Object Oriented Programming with Java
Name of the Student:
Name of the University:
Author note:
Object Oriented Programming with Java_1
Source Code:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication31;
import java.util.Scanner;
/**
*
* @author LAPTOP_MP340
*/
class Person{
String name[]= new String[50];
String roll[]= new String[20];
Scanner sc= new Scanner(System.in);
Object Oriented Programming with Java_2
int j;
void getDetails(){
System.out.print("Enter Student Name :");
name[j]=sc.nextLine();
System.out.print("Enter Student ID:");
roll[j]=sc.nextLine();
}
void show(){
System.out.println("\
n#############################################################");
System.out.println("\nThank you using this system");
System.out.println("\nGood Bye");
System.out.println("\nStudent ID :"+roll[j]);
System.out.println("\nStudent Name :"+name[j]);
System.out.println("\
n###########################################################"
+ "");
Object Oriented Programming with Java_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Java Program to Draw Shapes - Desklib
|10
|1283
|284

Introduction to Programming with Java - Solved Assignments
|12
|1129
|91

CarYardMIT162011 Class Implementation in Java
|6
|1107
|393

Java Programming Assignments with Solutions
|9
|904
|164

NIM Game Playing Interface in Java
|8
|2250
|180

The Java Programming Document
|19
|2557
|43