Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3783814
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:16:55+00:00 2026-05-19T11:16:55+00:00

I am trying to get my mind around OOP in C# Winforms, but I

  • 0

I am trying to get my mind around OOP in C# Winforms, but I was wondering about something.

Lets say I’m making a chat system, using a Tcp Protocol. I need atleast the following:
– A TcpListener;
– A TcpClient;
– Something to parse/process the packet;
– A packet encryption system.

My question is, do I make classes called:

  • Server;
  • Client;
  • Encryption;
  • PacketHandler.

Or do I make 2 classes called:
– SendReceive; (Server and Client)
– PacketControl. (Packet handler and Encryption class)

Or do I just have it all wrong?

Are there any standards for choosing what you put in which class? -Links are welcome too.

Thank you for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:16:56+00:00Added an answer on May 19, 2026 at 11:16 am

    You might want to look at the solid principles or this article to find some design guidenlines. First you should ask for “responsibilities” and then try to assign them to classes. Try to write tests und you will see that smaller units (with single responsibility) are easier to test. If you need a unit that handles different things it might be composed of others (it’s a moderator between the smaller units then).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I am trying to get my mind around XSDs, XML and namespaces but
Trying to get my mind around google protobuf. I found some implementation of protobuf
I'm trying to get my mind around one aspect of memory management in the
I'm trying to get my head round this mind boggling stuff they call Database
Trying to get an ASP application deployed; it worked for a while but then
i'm trying to solve a seemingly simple problem, but just can't quite get my
I'm trying to get my head around using QuartzCore to render semi-complex text/gradient/image UITableViewCell
I have been trying to get this to work for about three solid days
I'm trying to wrap my mind around MEF. There is one thing I don't
I am trying to get the best from the excellent open source Mind Map

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.