| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- code .
- visual studio code
- 음료같은녹즙
- 티스토리초대
- GitLab Mirroring
- 티스토리 초대장
- 초대장
- GitLab미러링
- code 설치
- GitHub Mirroring
- currentTimeMillis
- visual studio code cli
- settings sync
- 니돈내먹
- code 세팅
- react native #gradle
- Emmet
- webstorm
- 프레시업 #풀무원 #하루한병 #건강만들기 #풀무원 녹즙
- Path Alias
- '티스토리 초대장/ 티스토리초대'
- 프리티어
- GitHub 미러링
- 유니옥션
- 실행시간 측정
- React Native
- 티스토리 초대장/ 티스토리초대
- gitlab 연동
- 네이버 클라우드 플랫폼
- eslint-import-resolver-typescript
Archives
- Today
- Total
방치하기
부울형 C# 디비 개념 . 객체 지향 생성자 오버로딩 본문
반응형
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class WebDB
{
private String name;
private String id;
private String pw;
//이름 관련
public WebDB()
{
}
public WebDB(String a)
{
this.name = a;
}
public WebDB(String a, String b)
{
this.name = a;
this.id = b;
}
public WebDB(String a, String b, String c)
{
this.name = a;
this.id = b;
this.pw = c;
}
void setName(String a)
{
name = a;
}
String getName(String a)
{
setName(a);
return name;
}
//아이디 관련
void setID(String a)
{
id = a;
}
String getID(String a)
{
setID(a);
return id;
}
// 패스워드 관련
void setPW(String a)
{
pw = a;
}
String getPW(String a)
{
setPW(a);
return id;
}
//부울형
public bool passOK(String a, String b)
{
if (pw == a && id == b)
{
return true;
}
else
return false;
}
public void memPri()
{
Console.WriteLine(name+" "+ id+" "+ pw);
}
}
class Members
{
public static void Main(String[] arg){
WebDB jh= new WebDB("이준호","천재","2222") ;
Console.WriteLine(jh.passOK("1234", "천재"));
jh.memPri();
}
}
}반응형
'프로그래밍 > C#' 카테고리의 다른 글
| 홍대 자바 과제calculator -> C# 으로 사칙연산 계산기 인트.파스 가 핵심. (0) | 2009.07.20 |
|---|---|
| 홍대 자바 수업 원주 ,넓이 구하는거-C# 생성자 사용 .. (0) | 2009.07.20 |
| C# 제어문 . While문 특이해서 역시난 허접해 ㅠ 지금 현재 책본 부분까지 (0) | 2009.07.05 |
Comments