0% found this document useful (0 votes)
11 views

Oop Lab Task: Submitted By: Adnan Haider REG NO: SP20-BSE-037 Section: Bse 3B DATE: 26-03-2020

The document defines two classes Teacher and Student with properties and methods. The Teacher class has properties for name, employee number, CNIC, address and department. The Student class has properties for name, roll number, CNIC, father's name and address.

Uploaded by

Adnan Aadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Oop Lab Task: Submitted By: Adnan Haider REG NO: SP20-BSE-037 Section: Bse 3B DATE: 26-03-2020

The document defines two classes Teacher and Student with properties and methods. The Teacher class has properties for name, employee number, CNIC, address and department. The Student class has properties for name, roll number, CNIC, father's name and address.

Uploaded by

Adnan Aadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

OOP LAB TASK

SUBMITTED BY: ADNAN HAIDER


REG NO: SP20-BSE-037
SECTION: BSE 3B
DATE: 26-03-2020
public class Teacher {

public String name;

public String employeeNO;

public String CNIC;

public String Address;

public String department;

public Teacher(){

public Teacher(String name,String employeeNO, String CNIC, String Address,


String department){

this.name = name;

this.employeeNO = employeeNO;

this.CNIC = CNIC;

this.Address = Address;

this.department = department;

public String TellName(){

return name;

public String TellDepartment(){

return department;

public String TellCNIC(){

return CNIC;

}
}
public class Student {

public String name;

public String rollNo;

public String cNIC;

public String fatherName;

public String Address;

public Student(){

this.name = name;

this.rollNo = rollNo;

this.cNIC = cNIC;

this.fatherName = fatherName;

this.Address = Address;

public String TellName(){

return name;

public String TellFatherName(){

return fatherName;

public String TellAddress(){

return Address;

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy