Skip to content

haitt16/OOP-Inclass-practice

Repository files navigation

OOP-Inclass-practice

Description

This work was developed by: Tran Thanh Hai - CTTN-KHMT K65 - Hanoi University of Science and Technology.

If this code make you confused, you are supposed to take a look into description of the code here.

How to run it?

  • First, you have to define CongTy and one of the NhanVien object, for example:

    CongTy soICT = new CongTy("SoICT", 1e12);
    GiamDoc giangVien1 = new GiamDoc("Tran Thanh Hai", 3e7, 2.5, 3e6);

    We define object GiamDoc with initialized variables: tenNhanVien, luongCoBan, heSoLuong and phuCap, respectively.

  • Second you have to regist defined staff with fuction:

    soICT.themNV(giangVien1);
  • Finally, you can use any methods or attributes of created CongTy to get needed information.

Run and Compile small Example

SoICT is small example for this repo

Type into the Terminal:

javac SoICT.java

to compile. Then type

java SoICT

to see the result.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages