close-red

CS502 - Fundamentals of Algorithms

Question(s) similar to the following:

What is the difference between structure and class?

Question 1: What is the difference between structure and class?

Answer: Suggest Edit

The ONLY DIFFERENCES between classes and structures are

  1. classes DEFAULT to having private members. Structures DEFAULT to having public members. These defaults can be changed so classes can be made to work like structures and vice versa.
  2. classes DEFAULT to inheriting privately from base classes. Structures DEFAULT to inheriting public from base classes. These defaults can be changed so classes can be made to work like structures and vice versa.

Similar Questions:

Question 2: What is the difference between structure and class?

Answer: Suggest Edit

The ONLY DIFFERENCES between classes and structures are

  1. classes DEFAULT to having private members. Structures DEFAULT to having public members. These defaults can be changed so classes can be made to work like structures and vice versa.
  2. classes DEFAULT to inheriting privately from base classes. Structures DEFAULT to inheriting public from base classes. These defaults can be changed so classes can be made to work like structures and vice versa.
Past Papers of CS502 - Fundamentals of Algorithms
Sponsored

Attach VULMS for better learning experience!
Attach VULMS Account

Our VULMS adds features of MDBs and lets your populate VU subjects automatically.

Tajweed Classes (Learn Quran with Tajweed)
Learn Holy Quran with Tajweed

Try our 3 days free demo now! Online online holy quran tajweed classes are useful to learn reading holy quran with tajweed.

Gegasoft POS/CRM Software
Gegasoft Point of Sale/Customer Relationship Managemnet Software

Gegasoft Point of Sale/Customer Relationship Management software is an accounting software to fulfill your business needs.

Sponsored

?