#!/bin/bash
#Define the Attributes class
class Attributes {
# The contact method
contact() {
discord="櫻井孝宏#8124"
telegram="@yehor_14"
gmail="yehor.redhat@gmail.com"
echo "$discord $telegram $gmail"
}
# The life method
life() {
langs=('English' 'Polish' 'Russian' 'Ukrainian')
nationality=('Ukrainian')
age=18
echo "${langs[*]} ${nationalities[*]} $age"
}
# The coding method
coding() {
declare -A langs=(
['intermediate']='bash'
['learning']='c++ java python'
)
specialities=('computer network administrator' 'systems security')
echo "${langs[*]} ${specialities[*]}"
}
}
#Create an instance of the Attributes class and call its methods
attr=new Attributes
attr.contact
attr.life
attr.coding
🏠
Working from home
Highlights
- Pro
Popular repositories Loading
-
-
face-detection-cpp
face-detection-cpp PublicSimple application written in C++ that utilizes the OpenCV library for image processing
C++
-
system-specifications
system-specifications PublicAn application written in C++ that provides data about the processor, video card, RAM and hard drive
C++
-
IPv4-calculator
IPv4-calculator PublicThis C++ program is designed to work with IP addresses and calculate subnet parameters based on a given subnet mask
C++
-
compress-file
compress-file PublicA file compression and decompression program written in pure C uses the Huffman algorithm to efficiently encode data.
C
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.