Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2012/5.0 > C# 2012/5.0 General Discussion
|
C# 2012/5.0 General Discussion Discussions about the C# 2012 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2012/5.0 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 10th, 2013, 09:35 AM
Registered User
 
Join Date: Jun 2013
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Unhappy Beg. C# 2012 Programming - Ch 8 problems

New to C# and am working through Beginning C# 2012 Programming. There doesn't appear to be a specific forum for it. Anyway, I'm having trouble understanding Ch. 8 "Introduction to Object Oriented Programming". I figure this is a pretty important topic, but I'm not quite grasping when you would use the various elements (Struct, Class, Interfaces,etc.) I've reread the chapter 3 times and sorta get what is going on, but have no idea where and how I would use them. Is that something that is explained further in the book or do I need to totally understand this section before I move on?
 
Old June 12th, 2013, 09:33 AM
Registered User
 
Join Date: Jun 2013
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Post Is this right?

This is what I think Ch 8 is trying to say:
class can be
public or internal = access types
abstract or sealed = inheritance types
used to group object and it's common functions
reference type

interface can be
public or internal = access types
abstract or sealed = inheritance types
used to implement functions that could be shared among otherwise dissimilar objects.

struct
similar to class except it is a value type not reference.
Am I on track?
The Following User Says Thank You to Pgriffy For This Useful Post:





Similar Threads
Thread Thread Starter Forum Replies Last Post
Force SQL Server 2012 to Use Visual Studio 2012 Titera BOOK: Professional Microsoft SQL Server 2012 Administration 1 May 6th, 2013 02:22 PM
2012 book link redirected me here. Question about Ch 10... rexcampbell BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 0 February 4th, 2013 06:41 PM
Welcome to Beginning SQL Server 2012 Programming! patkinson BOOK: Beginning Microsoft SQL Server 2012 Programming 2 November 27th, 2012 06:37 PM
Beg. Javascript 2nd Ed Ch 13: IE_NN_Menus.htm mcange HTML Code Clinic 0 March 15th, 2005 05:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.