(?)
Quotes are added by the Goodreads community and are not verified by Goodreads. (Learn more)

“Object-oriented languages use the paradigm of classes. In simplest terms, a class includes both data and the functions to operate on that data. You can create an instance of a class, also called an object, which will have all the data members and functionality of its class. Because of this, you can think of a class as being like a template, with each object being a specific instance of a particular type of class. For example, suppose you have a very simple class called Person, which has three fields (a data member is called a field in Java) and one method (a function is called a method in Java). The following code illustrates creating a simple class. For example, the first thing inside the beginning brace ({) is a constructor, a special kind of method that creates an instance of a class and sets its fields with their initial values.”

Suresh Basandra, C, C++ and Java Questions and Answers
Read more quotes from Suresh Basandra


Share this quote:
Share on Twitter

Friends Who Liked This Quote

To see what your friends thought of this quote, please sign up!

0 likes
All Members Who Liked This Quote

None yet!


This Quote Is From

C, C++ and Java Questions and Answers C, C++ and Java Questions and Answers by Suresh Basandra
6 ratings, average rating, 0 reviews

Browse By Tag